diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..b461b00 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,7 @@ +{ + "Lua": { + "diagnostics": { + "globals": ["vim", "Snacks"] + } + } +} diff --git a/lua/plugins/ale.lua b/lua/plugins/ale.lua index b368f72..4ad0da4 100644 --- a/lua/plugins/ale.lua +++ b/lua/plugins/ale.lua @@ -1,22 +1,5 @@ return { { "dense-analysis/ale", - config = function() - -- Make the Lua LS not freak out about the undefined globals - vim.g.ale_linters = { - lua = { 'sumneko_lua' }, - } - - vim.g.ale_lua_sumneko_lua_executable = 'lua-language-server' - vim.g.ale_lua_sumneko_lua_options = { - settings = { - Lua = { - diagnostics = { - globals = { 'vim', 'Snacks' }, - }, - }, - }, - } - end }, }