diff --git a/home/config/doom/config.el b/home/config/doom/config.el index baa1148..fc6ee7d 100644 --- a/home/config/doom/config.el +++ b/home/config/doom/config.el @@ -274,6 +274,11 @@ (css "https://github.com/tree-sitter/tree-sitter-css") (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src"))) +(define-derived-mode astro-mode web-mode "astro") +(setq auto-mode-alist + (append '(("\\.astro\\'" . astro-mode)) + auto-mode-alist)) + (use-package! lsp-tailwindcss :defer t :init diff --git a/home/config/doom/config.org b/home/config/doom/config.org index 451ec5b..15fb41d 100644 --- a/home/config/doom/config.org +++ b/home/config/doom/config.org @@ -617,6 +617,16 @@ Because ~astro-ts-mode~ uses treesitter, treesitter needs to be set up to handle (css "https://github.com/tree-sitter/tree-sitter-css") (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src"))) #+end_src + +Define Astro as a derived mode for ~.astro~ files. + +#+begin_src elisp +(define-derived-mode astro-mode web-mode "astro") +(setq auto-mode-alist + (append '(("\\.astro\\'" . astro-mode)) + auto-mode-alist)) +#+end_src + **** Tailwind Add the tailwind lsp package #+begin_src elisp :tangle packages.el diff --git a/home/default.nix b/home/default.nix index 4448029..f9b65c8 100644 --- a/home/default.nix +++ b/home/default.nix @@ -28,6 +28,8 @@ with mylib; # bat is a better cat (as a program, at least) bat + mob + htop pandoc