lspsaga.nvim
lspsaga.nvim copied to clipboard
LspRestart occur error
Description
When I use LspRestart command it occur error message Error detected while processing CursorHold Autocommands for "*": method textDocument/codeAction is not supported by any of the servers registered for the current buffer
And I find the autocommand define in codeaction/indicator.lua
vim.cmd [[autocmd CursorHold,CursorHoldI * lua require'lspsaga.codeaction.indicator'.check()]]
and I think use vim.defer_fn can temporarily sovle the problem
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.defer_fn(function() require'lspsaga.codeaction.indicator'.check() end, 1000)]]
What's the correct way to fix it?
+1 here