Update js and css for emacs29.
This commit is contained in:
parent
8e76c38f23
commit
3f1c45ac0a
@ -48,42 +48,31 @@
|
||||
(unless (treesit-ready-p 'typescript) (treesit-install-language-grammar 'typescript))
|
||||
)
|
||||
|
||||
(use-package js-ts-mode
|
||||
:ensure nil
|
||||
:pin manual
|
||||
:mode (
|
||||
("\\.js\\'" . js-ts-mode)
|
||||
)
|
||||
:commands (js-ts-mode)
|
||||
:init
|
||||
(add-to-list 'treesit-language-source-alist '(javascript . ("https://github.com/tree-sitter/tree-sitter-javascript" "master" "src")))
|
||||
(unless (treesit-ready-p 'javascript) (treesit-install-language-grammar 'javascript))
|
||||
)
|
||||
|
||||
(use-package css-ts-mode
|
||||
:ensure nil
|
||||
:pin manual
|
||||
:mode (
|
||||
("\\.css\\'" . css-ts-mode)
|
||||
)
|
||||
:commands (css-ts-mode)
|
||||
:init
|
||||
(add-to-list 'treesit-language-source-alist '(css "https://github.com/tree-sitter/tree-sitter-css"))
|
||||
(unless (treesit-ready-p 'css) (treesit-install-language-grammar 'css))
|
||||
)
|
||||
|
||||
;; (use-package js
|
||||
;; :mode (
|
||||
;; ("\\.js\\'" . js-mode)
|
||||
;; ("\\.json\\'" . js-mode)
|
||||
;; )
|
||||
;; :commands js-mode
|
||||
;; :pin manual
|
||||
;; :hook (
|
||||
;; (find-file . (lambda () (when (string= (file-name-extension buffer-file-name) "json") (add-hook 'before-save-hook 'json-fmt-jq nil 'local))))
|
||||
;; (js-mode . (lambda ()
|
||||
;; (tree-sitter-hl-mode +1)
|
||||
;; )
|
||||
;; )
|
||||
;; )
|
||||
;; :config
|
||||
;; (setq js-indent-level 2)
|
||||
;; )
|
||||
|
||||
;; (use-package typescript-mode
|
||||
;; :mode (
|
||||
;; ("\\.ts\\'" . typescript-mode)
|
||||
;; ("\\.tsx\\'" . typescript-mode)
|
||||
;; )
|
||||
;; :hook (
|
||||
;; (typescript-mode . (lambda ()
|
||||
;; ;; (lsp-register-client
|
||||
;; ;; (make-lsp-client :new-connection (lsp-stdio-connection '("deno" "lsp" --compat --unstable --allow-read))
|
||||
;; ;; :major-modes '(typescript-mode)
|
||||
;; ;; :server-id 'typescript-ls))
|
||||
;; (eglot-ensure)
|
||||
;; (tree-sitter-hl-mode +1)
|
||||
;; ))
|
||||
;; ;; (before-save . lsp-format-buffer)
|
||||
;; )
|
||||
;; )
|
||||
;; (use-package web-mode
|
||||
;; :mode (("\\.dust\\'" . web-mode)
|
||||
;; )
|
||||
|
Loading…
Reference in New Issue
Block a user