Add additional configuration for lua lsp
This commit is contained in:
parent
0dc654ae2e
commit
6adb1f506f
2 changed files with 13 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue