De-lobotomize the Lua Language Server

The AI code was wrong
Now here is some different AI code
This commit is contained in:
2025-04-18 13:45:49 -07:00
parent 51a8ed3919
commit 02cba114d8
2 changed files with 7 additions and 17 deletions

View File

@ -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
},
}