Add typescript mode, and disable the shitty Volar LSP server

This commit is contained in:
Maciej 2024-04-12 08:01:08 +03:00
parent 61a4654da5
commit 68a740d508
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
3 changed files with 9 additions and 9 deletions

View file

@ -10,6 +10,8 @@
:requires (web-mode company-web lsp-mode lsp-ui)
:straight t)
(use-package typescript-mode :straight t)
;; (use-package vue-mode
;; :straight t
;; :defer t)
@ -18,9 +20,6 @@
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.json\\'" . js2-mode))
;; Use js2-mode for typescript editing
(add-to-list 'auto-mode-alist '("\\.ts\\'" . js2-mode))
(defun activate-js2-mode ()
"JS2 mode overrides."
(set-indent 2)