Launch.nvim
Launch.nvim copied to clipboard
Change deprecated method in handles.lua
Running vim gives the following error:
[LSP] Accessing client.resolved_capabilities is deprecated, update your plugins or configuration to access client.server_capabilities instead.The new key/value pairs in server_capabilities directly match those defined in the language server protocol
This change fixes the error.
I haven't noticed an error or warning on 0.7, how can I reproduce this?
I haven't noticed an error or warning on 0.7, how can I reproduce this?
Only people using neovim nightly (0.8.0) get that error, and since this this config is meant to be rock solid, I don't think anyone should be using neovim nightly on it. I think it's best to keep a note in the readme that recommends users to use nvim 0.7
If you are using 0.8 you can fix this by change this line:
client.resolved_capabilities.document_formatting = false
to:
client.server_capabilities.documentFormattingProvider = false