feat(home-manager): rework neovim configuration
Use new neovim option introduced in 0.11
This commit is contained in:
parent
5ac9a372b9
commit
69493a7d84
13 changed files with 208 additions and 194 deletions
32
modules/home-manager/cli/neovim/files/lsp/lua.lua
Normal file
32
modules/home-manager/cli/neovim/files/lsp/lua.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
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,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue