docs(emacs programming): fix treesit urls and add Astro config
This commit is contained in:
parent
d7c2eadcec
commit
63133d312e
@ -21,29 +21,30 @@ variables to install grammars for different languages.
|
|||||||
css-ts-mode yaml-ts-mode) . lsp-deferred)
|
css-ts-mode yaml-ts-mode) . lsp-deferred)
|
||||||
:init
|
:init
|
||||||
(setq treesit-language-source-alist
|
(setq treesit-language-source-alist
|
||||||
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
'((astro "https://github.com/virchau13/tree-sitter-astro")
|
||||||
(c "https://github.com/tree-sitter/tree-sitter-c")
|
(bash "https://github.com/tree-sitter/tree-sitter-bash")
|
||||||
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
(c "https://github.com/tree-sitter/tree-sitter-c")
|
||||||
(common-lisp "https://github.com/theHamsta/tree-sitter-commonlisp")
|
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
||||||
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
|
(common-lisp "https://github.com/theHamsta/tree-sitter-commonlisp")
|
||||||
(css "https://github.com/tree-sitter/tree-sitter-css")
|
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
|
||||||
(csharp "https://github.com/tree-sitter/tree-sitter-c-sharp")
|
(css "https://github.com/tree-sitter/tree-sitter-css")
|
||||||
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
(csharp "https://github.com/tree-sitter/tree-sitter-c-sharp")
|
||||||
(go "https://github.com/tree-sitter/tree-sitter-go")
|
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
||||||
(go-mod "https://github.com/camdencheek/tree-sitter-go-mod")
|
(go "https://github.com/tree-sitter/tree-sitter-go")
|
||||||
(html "https://github.com/tree-sitter/tree-sitter-html")
|
(go-mod "https://github.com/camdencheek/tree-sitter-go-mod")
|
||||||
(js . ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src"))
|
(html "https://github.com/tree-sitter/tree-sitter-html")
|
||||||
(json "https://github.com/tree-sitter/tree-sitter-json")
|
(js ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src"))
|
||||||
(lua "https://github.com/Azganoth/tree-sitter-lua")
|
(json "https://github.com/tree-sitter/tree-sitter-json")
|
||||||
(make "https://github.com/alemuller/tree-sitter-make")
|
(lua "https://github.com/Azganoth/tree-sitter-lua")
|
||||||
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
|
(make "https://github.com/alemuller/tree-sitter-make")
|
||||||
(python "https://github.com/tree-sitter/tree-sitter-python")
|
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
|
||||||
(r "https://github.com/r-lib/tree-sitter-r")
|
(python "https://github.com/tree-sitter/tree-sitter-python")
|
||||||
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
(r "https://github.com/r-lib/tree-sitter-r")
|
||||||
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
||||||
(tsx . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src"))
|
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
||||||
(typescript . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src"))
|
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
|
||||||
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))))
|
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
||||||
|
(yaml "https://github.com/ikatyang/tree-sitter-yaml"))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Appwrite
|
*** Appwrite
|
||||||
@ -1445,6 +1446,15 @@ Auto-completion for ~emmet-mode~, ~html-mode~, and ~web-mode~.
|
|||||||
:after (emmet-mode web-mode))
|
:after (emmet-mode web-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
**** Astro
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package astro-ts-mode
|
||||||
|
:straight (:build t)
|
||||||
|
:defer t
|
||||||
|
:init
|
||||||
|
(mapc #'treesit-install-language-grammar '(astro css tsx)))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
**** CSS
|
**** CSS
|
||||||
Let’s customize a bit the built-in CSS mode.
|
Let’s customize a bit the built-in CSS mode.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
Loading…
Reference in New Issue
Block a user