Skip to content

Commit

Permalink
tweak(treesit-auto): install elisp grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Feb 14, 2024
1 parent 3908ec9 commit 2422c85
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,29 @@
:custom
(treesit-auto-install 'prompt)
:config
(push 'nix treesit-auto-langs)
(push (make-treesit-auto-recipe
:lang 'nix
:ts-mode 'nix-ts-mode
:remap 'nix-mode
:url "https://github.com/nix-community/tree-sitter-nix"
:ext "\\.nix\\'")
treesit-auto-recipe-list)
(push 'xml treesit-auto-langs)
(push (make-treesit-auto-recipe
:lang 'xml
:ts-mode 'xml-ts-mode
:remap '(nxml-mode xml-mode)
:url "https://github.com/ObserverOfTime/tree-sitter-xml"
:source-dir "tree-sitter-xml/src"
:ext "\\.xml\\'")
treesit-auto-recipe-list))
(setq treesit-auto-langs (append treesit-auto-langs '(nix xml elisp))
treesit-auto-recipe-list
(append
treesit-auto-recipe-list
(list (make-treesit-auto-recipe
:lang 'nix
:ts-mode 'nix-ts-mode
:remap 'nix-mode
:url "https://github.com/nix-community/tree-sitter-nix"
:ext "\\.nix\\'")
(make-treesit-auto-recipe
:lang 'xml
:ts-mode 'xml-ts-mode
:remap '(nxml-mode xml-mode)
:url "https://github.com/ObserverOfTime/tree-sitter-xml"
:source-dir "tree-sitter-xml/src"
:ext "\\.xml\\'")
(make-treesit-auto-recipe
:lang 'elisp
:ts-mode 'emacs-lisp-ts-mode
:remap 'emacs-lisp-mode
:url "https://github.com/Wilfred/tree-sitter-elisp"
:ext "\\.el\\'")))))

(use-package evil-textobj-tree-sitter
:straight (:host github :repo "meain/evil-textobj-tree-sitter" :files (:defaults "queries" "treesit-queries"))
Expand Down

0 comments on commit 2422c85

Please sign in to comment.