mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-05 02:09:49 -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
|
|
@ -111,13 +111,13 @@ with final.pkgs.lib; let
|
|||
rust-analyzer # rust LSP
|
||||
vscode-langservers-extracted # various web dev lsps from vscode
|
||||
typescript-language-server # css lsp thing
|
||||
qt6.qtdeclarative # qmlls
|
||||
|
||||
# autoformatters
|
||||
alejandra # amazing nix autoformatter
|
||||
stylua # lua formatter
|
||||
rustfmt # rust formatter
|
||||
prettierd # typescript/javascript formatter
|
||||
qt6.qtdeclarative
|
||||
# google-java-format # java formatter based off google guidelines
|
||||
|
||||
# misc
|
||||
|
|
|
|||
|
|
@ -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