summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/doom/config.el15
-rw-r--r--.config/doom/init.el2
2 files changed, 16 insertions, 1 deletions
diff --git a/.config/doom/config.el b/.config/doom/config.el
index 11f73070..de624042 100644
--- a/.config/doom/config.el
+++ b/.config/doom/config.el
@@ -478,3 +478,18 @@ text and copying to the killring."
;; Go
(setq lsp-go-analyses '((shadow . t)
(simplifycompositelit . :json-false)))
+
+
+
+
+;; JavaScript & TypeScript
+
+;;;; Tide mode
+(defun setup-tide-mode ()
+ (interactive)
+ (tide-setup)
+ (tide-hl-identifier-mode +1)
+ (flycheck-add-next-checker 'typescript-tide 'javascript-eslint))
+
+(add-hook 'typescript-mode-hook #'setup-tide-mode)
+(add-hook 'typescript-ts-mode-hook #'setup-tide-mode)
diff --git a/.config/doom/init.el b/.config/doom/init.el
index 5127e8da..b8ca51f2 100644
--- a/.config/doom/init.el
+++ b/.config/doom/init.el
@@ -142,7 +142,7 @@
;;idris ; a language you can depend on
json ; At least it ain't XML
;;(java +lsp) ; the poster child for carpal tunnel syndrome
- javascript ; all(hope(abandon(ye(who(enter(here))))))
+ (javascript +lsp) ; all(hope(abandon(ye(who(enter(here))))))
;;julia ; a better, faster MATLAB
;;kotlin ; a better, slicker Java(Script)
;;latex ; writing papers in Emacs has never been so fun