De-lobotomize the Lua Language Server
The AI code was wrong Now here is some different AI code
This commit is contained in:
7
.luarc.json
Normal file
7
.luarc.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"Lua": {
|
||||||
|
"diagnostics": {
|
||||||
|
"globals": ["vim", "Snacks"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,22 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"dense-analysis/ale",
|
"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