Skip to content

Commit 0b26915

Browse files
committed
fix(nvim): starting lsp requires an attached buffer
1 parent a10ae92 commit 0b26915

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/vectorcode/jobrunner/lsp.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ function jobrunner.init(ok_to_fail)
1919
return CLIENT.id
2020
end
2121
ok_to_fail = ok_to_fail or true
22+
if not vim.api.nvim_buf_is_loaded(0) then
23+
vim.cmd("edit")
24+
end
2225
local client_id = vim.lsp.start(vc_config.lsp_configs(), {})
2326
if client_id ~= nil then
2427
-- server started

0 commit comments

Comments
 (0)