2025-01-01 18:56:17 -08:00
|
|
|
return {
|
|
|
|
filetypes = { 'lua' },
|
|
|
|
cmd = { 'lua-language-server' },
|
|
|
|
root_markers = {
|
|
|
|
'.luarc.json',
|
|
|
|
'.luarc.jsonc',
|
|
|
|
'.luacheckrc',
|
|
|
|
'.stylua.toml',
|
|
|
|
'stylua.toml',
|
|
|
|
'selene.toml',
|
|
|
|
'selene.yml',
|
2025-01-04 15:59:19 -08:00
|
|
|
'.git',
|
2025-01-01 18:56:17 -08:00
|
|
|
},
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
Lua = {
|
|
|
|
workspace = {
|
|
|
|
checkThirdParty = false,
|
|
|
|
},
|
|
|
|
codeLens = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
completion = {
|
|
|
|
callSnippet = 'Replace',
|
|
|
|
},
|
|
|
|
doc = {
|
|
|
|
privateName = { '^_' },
|
|
|
|
},
|
|
|
|
hint = {
|
|
|
|
enable = true,
|
|
|
|
setType = false,
|
|
|
|
paramType = true,
|
|
|
|
paramName = 'Disable',
|
|
|
|
semicolon = 'Disable',
|
|
|
|
arrayIndex = 'Disable',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|