Closed anuvyklack closed 10 months ago
when I delete it, restart Emacs and visit Nix file, nothing happens
This would be because the default behavior of treesit-auto-add-to-auto-mode-alist
is to only add tree-sitter modes that are ready to auto-mode-alist
. If you use (treesit-auto-add-to-auto-mode-alist 'all)
or (treesit-auto-add-to-auto-mode-alist '(nix))
, do you get the intended behavior?
Additionally, feel free to contribute this recipe in a PR so we can just include nix with treesit-auto!
I am trying to add a recipe for nix language, but can't get it work. I use this configuration
And when I manually call
treesit-auto-install-all
command, it buildslibtree-sitter-nix.so
, but when I delete it, restart Emacs and visit Nix file, nothing happens.