Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

LspRestart occur error #120

Open
shun-sfoo opened this issue Jun 13, 2022 · 1 comment
Open

LspRestart occur error #120

shun-sfoo opened this issue Jun 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@shun-sfoo
Copy link

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 shun-sfoo added the bug Something isn't working label Jun 13, 2022
@ashton
Copy link

ashton commented May 8, 2023

+1 here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants