-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(lsp)!: deprecate lvim.lsp.diagnostics
#3916
Conversation
we can use
|
|
I agree, |
Hi guys, as a user that faced this issue I can say it could be great if you could put a line in the Lunarvim docs explaining how to use it and make it settable from |
that's what this pr is doing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it's time to change this since it was limited, but I'm not sure if it's wise to introduce even more obscure variables. Please take a look at #2344
The ideal solution is to mimic how vim.lsp
works:
- create a table that exactly matches the entries passed to
vim.lsp.config
- override handlers using a public re-usable API, e.g.
lvim.lsp.handlers
(Important!) make sure all of the above is set once at startup
Sorry for the late response!
|
8f86ae0
to
2e52e5e
Compare
lvim.lsp.diagnostics
31a11d0
to
583a042
Compare
keep backward compability
583a042
to
e695966
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpea2506, I made some minor changes to clean up a few things, and also make the deprecation message clearer with regards to how to handle it.
Just need you guys to test it, otherwise LGTM! 🚀
Description
lvim.lsp.diagnostics
anymore asvim.diagnostic.config
is easier to point to with regards to documentation.fixes #3874, resolves #2344
How Has This Been Tested?
lvim.lsp.float.xxx
andlvim.lsp.diagnostics.xxx
are deprecatedlvim.lsp.handlers
andvim.diagnostic.config
respectively instead.lvim.lsp.diagnostics.virtual_text
can be a table ifhas('nvim-0.7')
(currently forced to boolean) #2568 (comment)