nvim: add QML support
This commit is contained in:
parent
c82ec04134
commit
4af5a99a8d
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue