typescript: remap keybinding to use tide function

- As described in #10870, typescript/jump-to-type-def function is removed,
but the keybinding is still calling it.

- Mapping the keybind to call tide jump to definition directly.
This commit is contained in:
Roy Choo 2018-06-20 11:42:55 +08:00 committed by Codruț Constantin Gușoi
parent 655117009d
commit 43f0b4d617
2 changed files with 6 additions and 1 deletions

View File

@ -153,3 +153,7 @@
(defun spacemacs/typescript-yasnippet-setup ()
(yas-activate-extra-mode 'js-mode))
(defun spacemacs/typescript-jump-to-type-def ()
(interactive)
(tide-jump-to-definition t))

View File

@ -79,7 +79,8 @@
(setq keybindingList '("Ee" tide-fix
"Ed" tide-add-tslint-disable-next-line
"gb" tide-jump-back
"gt" typescript/jump-to-type-def
"gg" tide-jump-to-definition
"gt" spacemacs/typescript-jump-to-type-def
"gu" tide-references
"hh" tide-documentation-at-point
"rr" tide-rename-symbol