Replies: 2 comments
-
I found a workaround: I can disable the formatter by using BOTH the old solution and, when starting the client, adding this to the capabilities: Not exactly a good solution. |
Beta Was this translation helpful? Give feedback.
0 replies
-
See also #24054 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In previous Neovim versions, it was possible to disable a LSP capbility by setting
client.server_capabilities.documentFormattingProvider = false
in anon_attach
callback. In a recent update, Neovim has added support for dynamic registration of capabilities and this no longer has any effect, causingvim.lsp.buf.format
to use the LSP formatter anyways.Beta Was this translation helpful? Give feedback.
All reactions