nix/modules/home-manager/cli/neovim/files/lsp/lua.lua
2025-04-18 08:54:33 +02:00

32 lines
619 B
Lua

return {
cmd = { 'lua-language-server' },
filetypes = { 'lua' },
root_markers = {
'.luarc.json',
'.luarc.jsonc',
'.luacheckrc',
'.stylua.toml',
'stylua.toml',
'selene.toml',
'selene.yml',
'.git',
},
settings = {
Lua = {
diagnostics = {
globals = {'vim'} -- Add any globals you want to ignore as undefined
},
workspace = {
library = {
[vim.fn.expand('$VIMRUNTIME/lua')] = true
}
},
telemetry = {
enable = false -- Disable telemetry
}
}
},
flags = {
debounce_text_changes = 150,
}
}