diff options
author | mattkae <mattkae@protonmail.com> | 2022-09-26 21:29:06 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-09-26 21:29:06 -0400 |
commit | 3d33da474ec888e5de6a2c175606e6873b70e6a0 (patch) | |
tree | 8c005e52296c8ecdd2d889335ed189632c9546cc /lisp | |
parent | 8ffcac2bcfdc30bc8f36fb9e55569d9a04992edc (diff) |
Using tide in typescript for refactoring
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/web.el | 7 |
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 |