Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find g:nv_search_paths even though it is set #17

Closed
softinio opened this issue Dec 19, 2017 · 3 comments
Closed

Can't find g:nv_search_paths even though it is set #17

softinio opened this issue Dec 19, 2017 · 3 comments

Comments

@softinio
Copy link

Summary of Problem

I get this error:

Error detected while processing /Users/salar.rahmanian/.vim/plugged/notational-fzf-vim/plugin/notational_fzf.vim:
line   18:
`g:nv_search_paths` is not defined.

my config:

"notational-fzf-vim
let g:nv_main_directory=['~/notes']
let g:nv_search_paths=['~/notes']
let g:nv_default_extension='.md'
let g:nv_create_note_key='ctrl-x'
let g:nv_keymap={
                  \ 'ctrl-s': 'split ',
                  \ 'ctrl-v': 'vertical split ',
                  \ 'ctrl-t': 'tabedit ',
                  \ })
let g:nv_create_note_window='vertical split'

Any ideas?

@softinio
Copy link
Author

found what the issue was closing. My env issue.

@diego898
Copy link

@softinio I am seeing the same problem - can you clarify what it was?

@nocibambi
Copy link

@softinio I am seeing the same problem - can you clarify what it was?

I had the same problem. I found the solution (for my case) in the install guide. Basically, I had add that line to .vimrc.

Required Settings

You have to define a list of directories or files (which all must be strings) to search. This setting is named g:nv_search_paths.

Remember that these can be relative links.

" example
let g:nv_search_paths = ['~/wiki', '~/writing', '~/code', 'docs.md' , './notes.md']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants