Skip to content

Commit cf54749

Browse files
committed
Update README
1 parent cc0f516 commit cf54749

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ autocmd User Node
8484
\ endif
8585
```
8686

87+
#### Want to resolve modules with a custom NODE_PATH?
88+
89+
```vim
90+
let g:vim_node#node_path = [$HOME.'/project/src', '/absolute/path']
91+
```
92+
93+
Or you can also start vim with the `NODE_PATH` environment variable set.
8794

8895
License
8996
-------

autoload/node.vim

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ function! s:edit(name, from, ...)
5050
if empty(a:name) | return | endif
5151
let dir = isdirectory(a:from) ? a:from : fnamemodify(a:from, ":h")
5252
let command = a:0 == 1 ? a:1 : "edit"
53-
54-
" If just a plain filename with no directory part, check if it exists:
5553
let path = node#lib#find(a:name, dir)
5654

5755
if empty(path)

0 commit comments

Comments
 (0)