tombi: move to modules/coding/langs/toml.nix

This commit is contained in:
2026-06-19 21:57:46 +08:00
parent 84485d9e8a
commit 02953206f7
3 changed files with 23 additions and 2 deletions
+2 -2
View File
@@ -36,11 +36,11 @@ in
ripgrep # telescope ripgrep # telescope
# language servers
vscode-json-languageserver vscode-json-languageserver
vscode-langservers-extracted vscode-langservers-extracted
# taplo
tombi
typos-lsp typos-lsp
# render-markdown.nvim # render-markdown.nvim
python3Packages.pylatexenc python3Packages.pylatexenc
]; ];
+1
View File
@@ -18,6 +18,7 @@ in
java.enable = true; java.enable = true;
qml.enable = true; qml.enable = true;
typst.enable = true; typst.enable = true;
toml.enable = true;
}; };
}; };
} }
+20
View File
@@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.coding.langs.toml;
in
{
options.my.coding.langs.toml = {
enable = lib.mkEnableOption "TOML";
};
config = lib.mkIf cfg.enable {
my.hm.home.packages = with pkgs; [
tombi
];
};
}