mirror of
https://github.com/tuxdotrs/tnvim.git
synced 2026-03-21 21:26:31 +05:30
feat: add support for qml
This commit is contained in:
@@ -17,6 +17,7 @@ local options = {
|
||||
nix = { "alejandra" },
|
||||
go = { "goimports", "gofumpt" },
|
||||
rust = { "rust_analyzer" },
|
||||
qml = { "qmlformat" },
|
||||
},
|
||||
|
||||
format_on_save = {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -30,6 +30,9 @@ M.treesitter = {
|
||||
|
||||
-- rust
|
||||
"rust",
|
||||
|
||||
-- qml
|
||||
"qmljs",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user