From 02953206f70675da58768a8ff77a36ceba2f6bf2 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Fri, 19 Jun 2026 21:57:46 +0800 Subject: [PATCH] tombi: move to modules/coding/langs/toml.nix --- modules/coding/editor/neovim/default.nix | 4 ++-- modules/coding/langs/all.nix | 1 + modules/coding/langs/toml.nix | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 modules/coding/langs/toml.nix diff --git a/modules/coding/editor/neovim/default.nix b/modules/coding/editor/neovim/default.nix index 80e6c36..0679496 100644 --- a/modules/coding/editor/neovim/default.nix +++ b/modules/coding/editor/neovim/default.nix @@ -36,11 +36,11 @@ in ripgrep # telescope + # language servers vscode-json-languageserver vscode-langservers-extracted - # taplo - tombi typos-lsp + # render-markdown.nvim python3Packages.pylatexenc ]; diff --git a/modules/coding/langs/all.nix b/modules/coding/langs/all.nix index 1b00e8d..48d1c9f 100644 --- a/modules/coding/langs/all.nix +++ b/modules/coding/langs/all.nix @@ -18,6 +18,7 @@ in java.enable = true; qml.enable = true; typst.enable = true; + toml.enable = true; }; }; } diff --git a/modules/coding/langs/toml.nix b/modules/coding/langs/toml.nix new file mode 100644 index 0000000..a3c8694 --- /dev/null +++ b/modules/coding/langs/toml.nix @@ -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 + ]; + }; +}