mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-04 17:59:50 -05:00
ftplugin/qml: add qmlls, pretty jank
This commit is contained in:
parent
3e02c57c0a
commit
3b43874e57
2 changed files with 11 additions and 2 deletions
|
|
@ -1,7 +1,16 @@
|
|||
if vim.fn.executable('qmlformat') ~= 1 then
|
||||
if vim.fn.executable('qmlls') ~= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
vim.bo.tabstop = 4
|
||||
vim.bo.shiftwidth = 4
|
||||
vim.bo.expandtab = true
|
||||
|
||||
local lsp = require('user.lsp')
|
||||
|
||||
vim.lsp.start {
|
||||
name = 'qmlls',
|
||||
cmd = { 'qmlls', '-E' },
|
||||
capabilities = lsp.make_client_capabilities(),
|
||||
on_attach = lsp.on_attach,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue