emacs: limit installed tree-sitter grammars
Alan Pearce alan@alanpearce.eu
Wed, 12 Mar 2025 16:24:13 +0100
9 files changed, 56 insertions(+), 1 deletions(-)
jump to
M user/settings/accounting.nix → user/settings/accounting.nix
@@ -9,4 +9,10 @@ bean-add beancount reckon ]; + programs.emacs.extraPackages = epkgs: (with epkgs; [ + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-beancount + tree-sitter-ledger + ])) + ]); }
M user/settings/development/base.nix → user/settings/development/base.nix
@@ -46,6 +46,17 @@ MOSH_TITLE_NOPREFIX = "1"; LIMA_INSTANCE = "nixos"; }; + programs.emacs.extraPackages = epkgs: (with epkgs; [ + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-bash + tree-sitter-fish + tree-sitter-just + tree-sitter-make + tree-sitter-dockerfile + tree-sitter-sql + ])) + ]); + editorconfig = { enable = true; settings = {
M user/settings/development/clojure.nix → user/settings/development/clojure.nix
@@ -9,5 +9,8 @@ ]; programs.emacs.extraPackages = epkgs: (with epkgs; [ cider clojure-mode + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-clojure + ])) ]); }
M user/settings/development/golang.nix → user/settings/development/golang.nix
@@ -30,6 +30,12 @@ programs.emacs.extraPackages = epkgs: (with epkgs; [ go-eldoc go-tag templ-ts-mode + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-go + tree-sitter-gowork + tree-sitter-gomod + tree-sitter-templ + ])) ]); programs.neovim.plugins = with pkgs.vimPlugins; [ coc-go
M user/settings/development/javascript.nix → user/settings/development/javascript.nix
@@ -25,6 +25,13 @@ programs.emacs.extraPackages = epkgs: (with epkgs; [ astro-ts-mode svelte-mode + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-jsdoc + tree-sitter-svelte + tree-sitter-tsx + tree-sitter-typescript + tree-sitter-javascript + ])) ]); home.shellAliases = {
M user/settings/development/lisp.nix → user/settings/development/lisp.nix
@@ -11,6 +11,12 @@ ] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [ ccl ]; + programs.emacs.extraPackages = epkgs: (with epkgs; [ + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-commonlisp + ])) + ]); + programs.git.attributes = [ "*.lisp diff=common-lisp" ];
M user/settings/development/rust.nix → user/settings/development/rust.nix
@@ -10,4 +10,9 @@ rustfmt rust-analyzer clippy ]; + programs.emacs.extraPackages = epkgs: (with epkgs; [ + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-rust + ])) + ]); }
M user/settings/development/web.nix → user/settings/development/web.nix
@@ -98,6 +98,10 @@ emmet-mode nginx-mode php-mode web-mode + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-css + tree-sitter-html + ])) ]); programs.neovim.plugins = with pkgs.vimPlugins; [ coc-css
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -153,8 +153,15 @@ treemacs treemacs-evil treemacs-magit treemacs-nerd-icons - treesit-grammars.with-all-grammars treesit-auto + (treesit-grammars.with-grammars (grammars: with grammars; [ + tree-sitter-nix + tree-sitter-markdown + tree-sitter-json + tree-sitter-json5 + tree-sitter-toml + tree-sitter-yaml + ])) try ultra-scroll vc-msg