Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
charlespwd committed Apr 4, 2018
1 parent cc0f516 commit cf54749
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ autocmd User Node
\ endif
```

#### Want to resolve modules with a custom NODE_PATH?

```vim
let g:vim_node#node_path = [$HOME.'/project/src', '/absolute/path']
```

Or you can also start vim with the `NODE_PATH` environment variable set.

License
-------
Expand Down
2 changes: 0 additions & 2 deletions autoload/node.vim
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ function! s:edit(name, from, ...)
if empty(a:name) | return | endif
let dir = isdirectory(a:from) ? a:from : fnamemodify(a:from, ":h")
let command = a:0 == 1 ? a:1 : "edit"

" If just a plain filename with no directory part, check if it exists:
let path = node#lib#find(a:name, dir)

if empty(path)
Expand Down

0 comments on commit cf54749

Please sign in to comment.