lspsaga.nvim icon indicating copy to clipboard operation
lspsaga.nvim copied to clipboard

LspRestart occur error

Open shun-sfoo opened this issue 3 years ago • 1 comments

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?

shun-sfoo avatar Jun 13 '22 02:06 shun-sfoo

+1 here

ashton avatar May 08 '23 01:05 ashton