Add typescript mode, and disable the shitty Volar LSP server
This commit is contained in:
parent
61a4654da5
commit
68a740d508
3 changed files with 9 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -16,12 +16,6 @@
|
|||
;; ERB mode
|
||||
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
|
||||
|
||||
;; React Typescript
|
||||
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . web-mode))
|
||||
|
||||
;; Plain React
|
||||
(add-to-list 'auto-mode-alist '("\\.jsx\\'" . web-mode))
|
||||
|
||||
;; Vue JS
|
||||
(add-to-list 'auto-mode-alist '("\\.vue\\'" . web-mode))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue