De-lobotomize the Lua Language Server
The AI code was wrong Now here is some different AI code
This commit is contained in:
@ -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
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user