1
0
Fork 0

nvim: add QML support

This commit is contained in:
tastytea 2022-08-29 23:29:06 +02:00
parent c82ec04134
commit 4af5a99a8d
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 9 additions and 1 deletions

View File

@ -202,7 +202,7 @@ if vim.fn.executable('gopls') > 0 then
})
end
-- binary probably doesn't exist even when installed
-- FIXME: binary probably doesn't exist even when installed
if vim.fn.executable('perlls') > 0 then
lspconfig.perlls.setup({
on_attach = on_attach,
@ -210,6 +210,13 @@ if vim.fn.executable('perlls') > 0 then
})
end
if vim.fn.executable('qml-lsp') > 0 then
lspconfig.qml_lsp.setup({
on_attach = on_attach,
capabilities = capabilities
})
end
require('lsp-format').setup({
sync = true -- seems to be needed to not interfere with Neogit
})

View File

@ -40,6 +40,7 @@ require('packer').startup({ function(use)
requires = { 'https://github.com/nvim-lua/plenary.nvim' }
}
use { 'https://github.com/powerman/vim-plugin-AnsiEsc' }
use { 'https://github.com/peterhoeg/vim-qml' }
-- completion
use {