From 53957e2457b9a5d4de577b8ae1fb34d3242a290b Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 2 Dec 2024 06:35:45 +0000 Subject: [PATCH] Add tree-sitter grammars to emacs Switch rnix to nil --- home-manager/modules/programs/emacs.nix | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/home-manager/modules/programs/emacs.nix b/home-manager/modules/programs/emacs.nix index 4fa60bc..a4c638b 100644 --- a/home-manager/modules/programs/emacs.nix +++ b/home-manager/modules/programs/emacs.nix @@ -30,7 +30,7 @@ in # For spelling myAspell # For nix - # rnix-lsp + nil manix nix-doc # For email @@ -53,12 +53,20 @@ in programs.emacs = { enable = true; package = emacsPackage'; - extraPackages = epkgs: [ - epkgs.mu4e - epkgs.vterm - epkgs.pdf-tools - epkgs.emacsql - epkgs.emacsql-sqlite - ]; + extraPackages = + epkgs: with pkgs; [ + epkgs.mu4e + epkgs.vterm + epkgs.pdf-tools + epkgs.emacsql + epkgs.emacsql-sqlite + (tree-sitter.withPlugins ( + grammars: with grammars; [ + tree-sitter-nix + tree-sitter-rust + tree-sitter-toml + ] + )) + ]; }; }