Add additional configuration for lua lsp

This commit is contained in:
Sonny Bakker 2025-03-18 20:16:43 +01:00
parent 0dc654ae2e
commit 6adb1f506f
2 changed files with 13 additions and 1 deletions

View file

@ -29,7 +29,7 @@ language_servers:
- package: lua-language-server
server_name: 'lua_ls'
auto_setup: true
auto_setup: false
- package: yaml-language-server
server_name: 'yamlls'

View file

@ -95,6 +95,18 @@ nvim_lsp.jsonls.setup {
capabilities = snippet_capabilities,
}
nvim_lsp.lua_ls.setup {
on_attach = on_attach,
capabilities = snippet_capabilities,
settings = {
Lua = {
diagnostics = {
globals = { 'vim' }
}
}
}
}
{% endif %}
nvim_lsp.yamlls.setup {
on_attach = on_attach,