feat(coding/langs): QML

This commit is contained in:
2025-07-06 14:29:49 +08:00
parent 99121f72c9
commit abdc2f5c6c
3 changed files with 24 additions and 0 deletions

View File

@@ -62,6 +62,9 @@ local extra_config = {
}, },
}, },
}, },
qmlls = {
cmd = {"qmlls", "-E"}
}
} }
local capabilities = require("cmp_nvim_lsp").default_capabilities() local capabilities = require("cmp_nvim_lsp").default_capabilities()

View File

@@ -15,6 +15,7 @@ lib.my.makeSwitch {
python.enable = true; python.enable = true;
rust.enable = true; rust.enable = true;
lua.enable = true; lua.enable = true;
qml.enable = true;
}; };
}; };
} }

View File

@@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}:
lib.my.makeSwitch {
inherit config;
optionName = "QML";
optionPath = [
"coding"
"langs"
"qml"
];
config' = {
my.home.home.packages = with pkgs; [
kdePackages.qtdeclarative
];
};
}