diff --git a/autoload/node.vim b/autoload/node.vim index 3954e4c..cf54e75 100644 --- a/autoload/node.vim +++ b/autoload/node.vim @@ -30,6 +30,7 @@ function! node#javascript() setlocal path-=/usr/include let &l:suffixesadd .= "," . join(g:node#suffixesadd, ",") let &l:include = '\<require(\(["'']\)\zs[^\1]\+\ze\1' + let &l:include = '\<from\s\(["'']\)\zs[^\1]\+\ze\1' let &l:includeexpr = "node#lib#find(v:fname, bufname('%'))" " @ is used for scopes, but isn't a default filename character on