diff options
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/nv/nvim/plgs/treesitter/default.nix (renamed from modules/home.legacy/conf/nvim/plgs/treesitter/default.nix) | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/home.legacy/conf/nvim/plgs/treesitter/default.nix b/modules/by-name/nv/nvim/plgs/treesitter/default.nix index b4b20388..02088d0a 100644 --- a/modules/home.legacy/conf/nvim/plgs/treesitter/default.nix +++ b/modules/by-name/nv/nvim/plgs/treesitter/default.nix @@ -3,8 +3,10 @@ pkgs, lib, ... -}: { - programs.nixvim = { +}: let + cfg = config.soispha.programs.nvim; +in { + home-manager.users.soispha. programs.nixvim = lib.mkIf cfg.enable { plugins.treesitter = { enable = true; @@ -18,7 +20,9 @@ nixGrammars = true; grammarPackages = - config.programs.nixvim.plugins.treesitter.package.passthru.allGrammars + # Append the `tree-sitter-yts` grammar to all the other grammars. + # TODO: Find a better way to do this. <2024-11-08> + config.home-manager.users.soispha.programs.nixvim.plugins.treesitter.package.passthru.allGrammars ++ [pkgs.tree-sitter-yts]; settings = { |