We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 692887e + 19e029b commit 86cf4bcCopy full SHA for 86cf4bc
1 file changed
lua/markview/extras/editor.lua
@@ -366,7 +366,11 @@ editor.open_editor = function ()
366
367
--- Attaches LSP client.
368
vim.api.nvim_buf_call(editor.buffer, function ()
369
- vim.cmd("LspStart");
+ if vim.version.range(">=0.12"):has(vim.version()) then
370
+ vim.cmd("lsp enable");
371
+ else
372
+ vim.cmd("LspStart");
373
+ end
374
end);
375
376
---_
@@ -550,8 +554,13 @@ editor.update_editor = function ()
550
554
551
555
552
556
553
- vim.cmd("LspStop");
557
558
+ vim.cmd("lsp disable");
559
560
561
+ vim.cmd("LspStop");
562
563
564
565
566
0 commit comments