fix: remove redundant auto-recipe
This commit is contained in:
parent
9ccdba5129
commit
e29d2c7ffa
1 changed files with 15 additions and 22 deletions
|
@ -1,6 +1,8 @@
|
||||||
;;; lang/astro/config.el -*- lexical-binding: t; -*-
|
;;; lang/astro/config.el -*- lexical-binding: t; -*-
|
||||||
|
;;; TODO: fix treesitter install errors
|
||||||
|
|
||||||
;; https://github.com/edmundmiller/.doom.d/blob/main/modules/lang/astro/config.el
|
;; https://github.com/edmundmiller/.doom.d/blob/main/modules/lang/astro/config.el
|
||||||
|
|
||||||
(use-package! treesit-auto
|
(use-package! treesit-auto
|
||||||
:custom
|
:custom
|
||||||
(treesit-auto-install 'prompt)
|
(treesit-auto-install 'prompt)
|
||||||
|
@ -30,36 +32,27 @@
|
||||||
:init
|
:init
|
||||||
(setq! lsp-tailwindcss-add-on-mode t)
|
(setq! lsp-tailwindcss-add-on-mode t)
|
||||||
:config
|
:config
|
||||||
(dolist (tw-major-mode
|
|
||||||
'(css-mode
|
|
||||||
css-ts-mode
|
|
||||||
typescript-mode
|
|
||||||
typescript-ts-mode
|
|
||||||
tsx-ts-mode
|
|
||||||
js2-mode
|
|
||||||
js-ts-mode
|
|
||||||
clojure-mode))
|
|
||||||
(add-to-list 'lsp-tailwindcss-major-modes tw-major-mode))
|
|
||||||
(add-to-list 'lsp-tailwindcss-major-modes 'astro-ts-mode)
|
(add-to-list 'lsp-tailwindcss-major-modes 'astro-ts-mode)
|
||||||
(add-to-list 'lsp-tailwindcss-major-modes 'html-mode))
|
(add-to-list 'lsp-tailwindcss-major-modes 'html-mode))
|
||||||
|
|
||||||
;; MDX Support
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.\\(mdx\\)$" . markdown-mode))
|
|
||||||
(when (modulep! +lsp)
|
|
||||||
(add-hook 'markdown-mode-local-vars-hook #'lsp! 'append))
|
|
||||||
|
|
||||||
(setq treesit-language-source-alist
|
(setq treesit-language-source-alist
|
||||||
'((astro "https://github.com/virchau13/tree-sitter-astro")
|
'((astro "https://github.com/virchau13/tree-sitter-astro")
|
||||||
(css "https://github.com/tree-sitter/tree-sitter-css")
|
(css "https://github.com/tree-sitter/tree-sitter-css")
|
||||||
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")))
|
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")))
|
||||||
|
|
||||||
(let ((astro-recipe (make-treesit-auto-recipe
|
;; MDX Support
|
||||||
:lang 'astro
|
(add-to-list 'auto-mode-alist '("\\.\\(mdx\\)$" . markdown-mode))
|
||||||
:ts-mode 'astro-ts-mode
|
(when (modulep! +lsp)
|
||||||
:url "https://github.com/virchau13/tree-sitter-astro"
|
(add-hook 'markdown-mode-local-vars-hook #'lsp! 'append))
|
||||||
:revision "master"
|
|
||||||
:source-dir "src")))
|
;(let ((astro-recipe (make-treesit-auto-recipe
|
||||||
(add-to-list 'treesit-auto-recipe-list astro-recipe))
|
; :lang 'astro
|
||||||
|
; :ts-mode 'astro-ts-mode
|
||||||
|
; :url "https://github.com/virchau13/tree-sitter-astro"
|
||||||
|
; :revision "master"
|
||||||
|
; :source-dir "src")))
|
||||||
|
; (add-to-list 'treesit-auto-recipe-list astro-recipe))
|
||||||
|
|
||||||
;; this needs to be executed, but im unsure of where so i just do it interactively
|
;; this needs to be executed, but im unsure of where so i just do it interactively
|
||||||
;; (mapc #'treesit-install-language-grammar '(astro css tsx))
|
;; (mapc #'treesit-install-language-grammar '(astro css tsx))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue