dotfiles/nvim/.config/nvim
Sanchayan Maity 4d970ce70c nvim: lsp: Fix error in LspDetach
Some language servers like HLS take longer to attach and if we exit
soon before LSP attach had a chance to finish (may be?), server
capabilities field does not seem to be valid in client object and
we get the below error. Check if it valid first.

Error detected while processing LspDetach Autocommands for "*":
Error executing lua callback: /home/core/.config/nvim/lua/lsp.lua:215: attempt to index field 'server_capabilities' (a nil value)
stack traceback:
        /home/core/.config/nvim/lua/lsp.lua:215: in function </home/core/.config/nvim/lua/lsp.lua:209>
        [C]: in function 'nvim_exec_autocmds'
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1140: in function </usr/local/share/nvim/runtime/lua/vim/lsp.lua:1139>
Error executing lua callback: /home/core/.config/nvim/lua/lsp.lua:215: attempt to index field 'server_capabilities' (a nil value)
stack traceback:
        /home/core/.config/nvim/lua/lsp.lua:215: in function </home/core/.config/nvim/lua/lsp.lua:209>
        [C]: in function 'nvim_exec_autocmds'
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1140: in function </usr/local/share/nvim/runtime/lua/vim/lsp.lua:1139>
2022-11-29 20:26:28 +05:30
..
after nvim: after/plugin/nvim-lint: Drop mypy for Python linting 2022-11-25 16:54:15 +05:30
autoload nvim: fugitive: Execute commands while keeping current alt file 2022-06-19 15:48:57 +05:30
colors nvim: Use more prominent white highlight for Comment 2022-11-23 12:42:06 +05:30
compiler nvim: after/ftplugin/rust: Set compiler and makeprg 2021-10-17 18:30:31 +05:30
ftdetect nvim: ftdetect: Drop nix ftdetect 2022-01-26 10:32:11 +05:30
lua nvim: lsp: Fix error in LspDetach 2022-11-29 20:26:28 +05:30
plugin nvim: plugin/visual-star-search: Set mark when doing backward search 2022-05-18 09:09:23 +05:30
init.lua nvim: init: Enable closeoff and linematch options for diffopt 2022-11-07 14:33:29 +05:30