Skip to content

Instantly share code, notes, and snippets.

@infomiho
Last active January 26, 2017 11:35
Show Gist options
  • Save infomiho/356761f9ad90445e9d18 to your computer and use it in GitHub Desktop.
Save infomiho/356761f9ad90445e9d18 to your computer and use it in GitHub Desktop.
FuzzyFIlePath settings for vuejs
{
"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