From dcd14d7eecf7fd8f1cc48d9b490640c5b56f1fa0 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Sun, 23 Feb 2025 02:01:58 +0000 Subject: [PATCH] Add Snacks as globals in lua lsp --- nvim/.luarc.json | 3 ++- nvim/lua/lsp/servers/lua_ls.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nvim/.luarc.json b/nvim/.luarc.json index 1e1765c..f82b794 100644 --- a/nvim/.luarc.json +++ b/nvim/.luarc.json @@ -1,5 +1,6 @@ { "diagnostics.globals": [ "vim" + "Snacks" ] -} \ No newline at end of file +} diff --git a/nvim/lua/lsp/servers/lua_ls.lua b/nvim/lua/lsp/servers/lua_ls.lua index 4a9f57a..780383e 100644 --- a/nvim/lua/lsp/servers/lua_ls.lua +++ b/nvim/lua/lsp/servers/lua_ls.lua @@ -30,7 +30,7 @@ return { version = "LuaJIT" }, diagnostics = { - globals = { "vim" }, + globals = { "vim", "Snacks" }, }, -- Make the server aware of Neovim runtime files workspace = {