javascript layer: move json-snatcher to SPC m h p
This commit is contained in:
parent
debe9e1d4f
commit
aa1dc15aa3
|
@ -13,6 +13,7 @@
|
|||
- [[#formatting-web-beautify][Formatting (web-beautify)]]
|
||||
- [[#documentation-js-doc][Documentation (js-doc)]]
|
||||
- [[#auto-complete-and-documentation-tern][Auto-complete and documentation (tern)]]
|
||||
- [[#json][JSON]]
|
||||
|
||||
* Description
|
||||
|
||||
|
@ -24,6 +25,7 @@ This layer adds support for the JavaScript language using [[https://github.com/m
|
|||
- Auto-completion and documentation: provided by [[http://ternjs.net/][tern]]
|
||||
- CoffeeScript support
|
||||
- Formatting with [[https://github.com/yasuyk/web-beautify][web-beautify]]
|
||||
- Get the path to a JSON value with [[https://github.com/Sterlingg/json-snatcher][json-snatcher]]
|
||||
|
||||
* Install
|
||||
|
||||
|
@ -126,3 +128,9 @@ You can check more [[https://github.com/mooz/js-doc/][here]]
|
|||
| ~SPC m h d~ | find docs of the thing under the cursor. Press again to open the associated URL (if any) |
|
||||
| ~SPC m h t~ | find the type of the thing under the cursor |
|
||||
| ~SPC m r r V~ | rename variable under the cursor using tern |
|
||||
|
||||
** JSON
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------+------------------------------------|
|
||||
| ~SPC m h p~ | Get the path of the value at point |
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
:defer t
|
||||
:config
|
||||
(evil-leader/set-key-for-mode 'json-mode
|
||||
"msp" 'jsons-print-path)
|
||||
"mhp" 'jsons-print-path)
|
||||
))
|
||||
|
||||
(defun javascript/init-tern ()
|
||||
|
|
Loading…
Reference in New Issue