feat: pass back stderr

This commit is contained in:
əlemi 2023-04-11 14:02:45 +02:00
parent 9a0311eb38
commit 532de6639f

View file

@ -1,7 +1,13 @@
local BINARY = "/home/alemi/projects/codemp/target/debug/client-nvim --debug"
if vim.g.codemp_jobid == nil then
vim.g.codemp_jobid = vim.fn.jobstart(BINARY, { rpc = true })
vim.g.codemp_jobid = vim.fn.jobstart(
BINARY,
{
rpc = true,
on_stderr = function(_, data, _) print(vim.fn.join(data, "\n")) end,
}
)
end
local M = {}