Can you disable a warning only for a specific project directory? #2156
Unanswered
NorielSylvire
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hello, the only thing I can think of is adding |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, community!
I just installed neovim and lua_ls, and I'm amazed!
I'm mostly using it for making minetest mods.
I had to add "minetest" as a global in my config file, so that it didn't warn me every time I referenced the game engine.
Next problem is, in my mods I have a global that starts with a lowercase for ease of access.
In order to disable the
lowercase_global
warning, I could either do---@diagnostic disable-next-line: lowercase-global
or---@diagnostic disable: lowercase-global
in all of my files, but I don't want to fill my mod's files with my own, personal nvim && lua_ls configuration, to keep it simple!Ideally, I would want to disable the warning for the directory of the entire project. Even better if I can disable the warning only for MY global, which is "nsmc".
I could also just refactor the code to make all occurrences of the global start with an uppercase but then my mod wouldn't be compatible with the previous versions, which is kind of important for me.
Is there a way for me to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions