Closed
Description
Describe the bug
Kickstart registers a autocmd for LspDetach
, which calls the augroup kickstart-lsp-highlight
, but if the server does not support the capability documentHighlightProvider
, this augroup does not exist. The following error is thrown:
Error detected while processing LspDetach Autocommands for "*":
Error executing lua callback: <cut>/.config/nvim/init.lua:618: Invalid 'group': 'kickstart-lsp-highlight'
stack traceback:
[C]: in function 'nvim_clear_autocmds'
<cut>/.config/nvim/init.lua:618: in function <<cut>/.config/nvim/init.lua:616>
[C]: in function 'nvim_exec_autocmds'
/usr/share/nvim/runtime/lua/vim/lsp.lua:388: in function </usr/share/nvim/runtime/lua/vim/lsp.lua:386>
To Reproduce
- Install a LSP server that does not support highlighting like grammarly (I believe)
- Open a file for that server, e.g. markdown
Desktop
- OS: Ubuntu 23.10
Linux <cut> 6.5.0-28-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 28 23:46:48 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
- Terminal: kitty
Neovim Version
NVIM v0.10.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Metadata
Metadata
Assignees
Labels
No labels