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

Change deprecated method in handles.lua

Open kronaemmanuel opened this issue 3 years ago • 2 comments

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.

kronaemmanuel avatar Jun 22 '22 15:06 kronaemmanuel

I haven't noticed an error or warning on 0.7, how can I reproduce this?

ChristianChiarulli avatar Jun 27 '22 14:06 ChristianChiarulli

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

dvchoudh avatar Jul 07 '22 08:07 dvchoudh

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

kylejamesross avatar Aug 21 '22 17:08 kylejamesross