From abdc2f5c6cfc2a87422874bec9dc655e244b1725 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Sun, 6 Jul 2025 14:29:49 +0800 Subject: [PATCH] feat(coding/langs): QML --- .../neovim/nvim/lua/plugins/lsp/lspconfig.lua | 3 +++ modules/coding/langs/all.nix | 1 + modules/coding/langs/qml.nix | 20 +++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 modules/coding/langs/qml.nix diff --git a/modules/coding/editor/neovim/nvim/lua/plugins/lsp/lspconfig.lua b/modules/coding/editor/neovim/nvim/lua/plugins/lsp/lspconfig.lua index 8202573..e6b860d 100644 --- a/modules/coding/editor/neovim/nvim/lua/plugins/lsp/lspconfig.lua +++ b/modules/coding/editor/neovim/nvim/lua/plugins/lsp/lspconfig.lua @@ -62,6 +62,9 @@ local extra_config = { }, }, }, + qmlls = { + cmd = {"qmlls", "-E"} + } } local capabilities = require("cmp_nvim_lsp").default_capabilities() diff --git a/modules/coding/langs/all.nix b/modules/coding/langs/all.nix index 67f85f8..f978163 100644 --- a/modules/coding/langs/all.nix +++ b/modules/coding/langs/all.nix @@ -15,6 +15,7 @@ lib.my.makeSwitch { python.enable = true; rust.enable = true; lua.enable = true; + qml.enable = true; }; }; } diff --git a/modules/coding/langs/qml.nix b/modules/coding/langs/qml.nix new file mode 100644 index 0000000..0c482b6 --- /dev/null +++ b/modules/coding/langs/qml.nix @@ -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 + ]; + }; +}