feat: add support for qml

This commit is contained in:
tux
2026-02-26 07:01:30 +05:30
parent afd150b869
commit 476698308f
3 changed files with 8 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ local options = {
nix = { "alejandra" },
go = { "goimports", "gofumpt" },
rust = { "rust_analyzer" },
qml = { "qmlformat" },
},
format_on_save = {

View File

@@ -23,6 +23,10 @@ local opts = {
-- python
b.diagnostics.ruff,
b.formatting.black,
-- qml
b.diagnostics.qmllint,
b.formatting.qmlformat,
},
on_attach = function(client, bufnr)
if client.supports_method("textDocument/formatting") then

View File

@@ -30,6 +30,9 @@ M.treesitter = {
-- rust
"rust",
-- qml
"qmljs",
},
}