Add Snacks as globals in lua lsp

This commit is contained in:
Martin Larsson 2025-02-23 02:01:58 +00:00
parent 866eac6317
commit 0a6c1b0368
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
{ {
"diagnostics.globals": [ "diagnostics.globals": [
"vim" "vim"
"Snacks"
] ]
} }

View file

@ -30,7 +30,7 @@ return {
version = "LuaJIT" version = "LuaJIT"
}, },
diagnostics = { diagnostics = {
globals = { "vim" }, globals = { "vim", "Snacks" },
}, },
-- Make the server aware of Neovim runtime files -- Make the server aware of Neovim runtime files
workspace = { workspace = {