Last active
January 26, 2017 11:35
-
-
Save infomiho/356761f9ad90445e9d18 to your computer and use it in GitHub Desktop.
FuzzyFIlePath settings for vuejs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"scopes": [ | |
{ | |
// js and vue - require("") | |
"scope": "source\\.[js|vue].*string", // 1. ignore if scope at cursor does not match expression (super+alt+p) | |
"prefix": ["require"], // 2. trigger only if: require(<cursor> | |
// if 1 & 2 are true: | |
"auto": true, // auto suggest filepaths, else only by shorctut | |
"extensions": ["js", "vue"], // show only .js and .vue files | |
"relative": true, // insert absolute | |
"base_directory": false, // insert absolute from the set base directory (above) | |
"replace_on_insert": [ | |
["\\.js$", ""], // after insertion, remove .js from path | |
["([^.])\\/index$", "\\1"] // nodejs will load index.js by default => also remove index | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment