feat(tree-sitter): better tree sitter config, precompiled grammars
This commit is contained in:
@@ -20,33 +20,24 @@ variables to install grammars for different languages.
|
|||||||
json-ts-mode rust-ts-mode tsx-ts-mode python-ts-mode
|
json-ts-mode rust-ts-mode tsx-ts-mode python-ts-mode
|
||||||
css-ts-mode yaml-ts-mode) . lsp-deferred)
|
css-ts-mode yaml-ts-mode) . lsp-deferred)
|
||||||
:init
|
:init
|
||||||
(setq treesit-font-lock-level 4
|
(add-to-list 'treesit-extra-load-path
|
||||||
treesit-language-source-alist
|
(expand-file-name "bin" tree-sitter-langs-grammar-dir)))
|
||||||
'((astro "https://github.com/virchau13/tree-sitter-astro")
|
#+end_src
|
||||||
(bash "https://github.com/tree-sitter/tree-sitter-bash")
|
|
||||||
(c "https://github.com/tree-sitter/tree-sitter-c")
|
#+begin_src emacs-lisp
|
||||||
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
(use-package tree-sitter-langs
|
||||||
(common-lisp "https://github.com/theHamsta/tree-sitter-commonlisp")
|
:after tree-sitter
|
||||||
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
|
:straight t
|
||||||
(css "https://github.com/tree-sitter/tree-sitter-css")
|
:custom (global-tree-sitter-mode t))
|
||||||
(csharp "https://github.com/tree-sitter/tree-sitter-c-sharp")
|
|
||||||
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
(use-package treesit-auto
|
||||||
(go "https://github.com/tree-sitter/tree-sitter-go")
|
:after tree-sitter
|
||||||
(go-mod "https://github.com/camdencheek/tree-sitter-go-mod")
|
:straight t
|
||||||
(html "https://github.com/tree-sitter/tree-sitter-html")
|
:config (global-treesit-auto-mode))
|
||||||
(js ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src"))
|
|
||||||
(json "https://github.com/tree-sitter/tree-sitter-json")
|
(use-package treesit-fold
|
||||||
(lua "https://github.com/Azganoth/tree-sitter-lua")
|
:straight (:build t :host github :repo "emacs-tree-sitter/treesit-fold")
|
||||||
(make "https://github.com/alemuller/tree-sitter-make")
|
:config (treesit-fold-mode))
|
||||||
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
|
|
||||||
(python "https://github.com/tree-sitter/tree-sitter-python")
|
|
||||||
(r "https://github.com/r-lib/tree-sitter-r")
|
|
||||||
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
|
||||||
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
|
||||||
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
|
|
||||||
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
|
||||||
(qml "https://github.com/yuja/tree-sitter-qmljs")
|
|
||||||
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Appwrite
|
*** Appwrite
|
||||||
|
|||||||
Reference in New Issue
Block a user