summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/web.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/web.el b/lisp/web.el
index a161e0f..7ec4af3 100644
--- a/lisp/web.el
+++ b/lisp/web.el
@@ -59,6 +59,13 @@
(add-hook 'typescript-mode-hook #'setup-ts-mode)
(add-hook 'typescriptreact-mode-hook #'setup-ts-mode)
+;; Tide for refactoring
+(defun setup-tide-mode()
+ (tide-setup)
+ (local-set-key [f2] 'tide-rename-symbol)
+)
+(add-hook 'typescript-mode-hook #'setup-tide-mode)
+
;; Package management
(use-package eglot
:custom