[lang/javascript] Add prefix names to JavaScript bindings (#1991)
* add prefix names to javascript bindings * move prefixes into respective package declarations
This commit is contained in:
parent
30a5cb2f1a
commit
6625ef7177
1 changed files with 27 additions and 3 deletions
|
@ -188,7 +188,7 @@ to tide."
|
|||
:map tide-mode-map
|
||||
"R" #'tide-restart-server
|
||||
"f" #'tide-format
|
||||
"rs" #'tide-rename-symbol
|
||||
"rrs" #'tide-rename-symbol
|
||||
"roi" #'tide-organize-imports))
|
||||
|
||||
|
||||
|
@ -205,7 +205,25 @@ to tide."
|
|||
:config
|
||||
(when (featurep! :editor evil +everywhere)
|
||||
(let ((js2-refactor-mode-map (evil-get-auxiliary-keymap js2-refactor-mode-map 'normal t t)))
|
||||
(js2r-add-keybindings-with-prefix (format "%s r" doom-localleader-key)))))
|
||||
(js2r-add-keybindings-with-prefix (format "%s r" doom-localleader-key))))
|
||||
(map! :map js2-mode-map
|
||||
:localleader
|
||||
(:prefix ("r" . "refactor")
|
||||
(:prefix ("a" . "add/arguments"))
|
||||
(:prefix ("b" . "barf"))
|
||||
(:prefix ("c" . "contract"))
|
||||
(:prefix ("d" . "debug"))
|
||||
(:prefix ("e" . "expand/extract"))
|
||||
(:prefix ("i" . "inject/inline/introduce"))
|
||||
(:prefix ("l" . "localize/log"))
|
||||
(:prefix ("o" . "organize"))
|
||||
(:prefix ("r" . "rename"))
|
||||
(:prefix ("s" . "slurp/split/string"))
|
||||
(:prefix ("t" . "toggle"))
|
||||
(:prefix ("u" . "unwrap"))
|
||||
(:prefix ("v" . "var"))
|
||||
(:prefix ("w" . "wrap"))
|
||||
(:prefix ("3" . "ternary")))))
|
||||
|
||||
|
||||
(use-package! eslintd-fix
|
||||
|
@ -234,6 +252,9 @@ to tide."
|
|||
(:after skewer-html
|
||||
:map skewer-html-mode-map
|
||||
"e" #'skewer-html-eval-tag))
|
||||
(map! :map js2-mode-map
|
||||
:localleader
|
||||
(:prefix ("s" . "skewer")))
|
||||
|
||||
|
||||
;;;###package npm-mode
|
||||
|
@ -242,7 +263,10 @@ to tide."
|
|||
:config
|
||||
(map! :localleader
|
||||
:map npm-mode-keymap
|
||||
"n" npm-mode-command-keymap))
|
||||
"n" npm-mode-command-keymap)
|
||||
(map! :map js2-mode-map
|
||||
:localleader
|
||||
(:prefix ("n" . "npm"))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue