From 02cba114d8cda90e9129502579dd3ffb7636dda2 Mon Sep 17 00:00:00 2001 From: Zakarya Date: Fri, 18 Apr 2025 13:45:49 -0700 Subject: [PATCH] De-lobotomize the Lua Language Server The AI code was wrong Now here is some different AI code --- .luarc.json | 7 +++++++ lua/plugins/ale.lua | 17 ----------------- 2 files changed, 7 insertions(+), 17 deletions(-) create mode 100644 .luarc.json 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 }, }