1
0
Fork 0

nvim: lsp: add LS for YAML

This commit is contained in:
tastytea 2022-09-05 19:47:45 +02:00
parent b3a91110f0
commit 6a43335840
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 7 additions and 0 deletions

View File

@ -235,6 +235,13 @@ if vim.fn.executable('typescript-language-server') > 0 then
})
end
if vim.fn.executable('yaml-language-server') > 0 then
lspconfig.yamlls.setup({
on_attach = on_attach,
capabilities = capabilities
})
end
require('lsp-format').setup({
sync = true -- seems to be needed to not interfere with Neogit
})