-
Notifications
You must be signed in to change notification settings - Fork 23k
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
Disable "missing-fields" warning in Lua LSP by default #503
Comments
I'm confused by this. The missing fields indicators are one of the basic features of every LSP. I see this in Python as well as Lua. From where I sit it's a desirable feature. Thank you for your contribution in any case! Why do you want to turn them off? Unless people in the community feel very strongly about this I'd prefer we not make this change. |
As a beginner, I was more confused about the fact that a major part of config was underlined because of these warnings and I thought I am expected to fix the warnings in order to repair this config. However I understand your point - I just shared my initial user's experience with this configuration. |
Thanks very much for the idea. I just think it's throwing the baby out with the bathwater :) Closing this for now. |
i agree, i thought my config was broken, lua_ls = {
Lua = {
workspace = { checkThirdParty = false },
telemetry = { enable = false },
-- NOTE: Toggle below if Lua LSP Warnings are too much
-- :help Link
-- diagnostics = { disable = "missing-fields" },
},
}, |
@wommy what is the |
@wommy Please generate a PR for this and, obviously minus the :help link, I'll merge it. I like how this signposts the way for people who want this disabled but doesn't short circuit the lsp defaults. |
Just some related items I've spotted whilst looking for a solution to this. A pull request in nvim-cpm to fix this is open 🎉 An issue in treesitter, but looks like it isn't a priority And finally there is an example of how to supress the warnings using a mix of |
i was trying to echo how TJ has the as im just trying to make the transition from the vimscript to lua myself, im totally unfamiliar, |
@wommy I don't think there is a help entry for that, at least I could not found one. Using the http link should work just as fine, or leaving the comment as is is probably also good enough. |
#511 got merged |
Hello,
I think it would be a great idea to extend
lua_ls
settings to ignore noisy warnings that are irrelevant for a beginner.From:
To:
Reference: https://github.com/LuaLS/lua-language-server/wiki/Settings#diagnosticsdisable
I cannot see any template for suggestions, so I hope I won't be automatically dismissed 😊
Kind Regards
The text was updated successfully, but these errors were encountered: