-
Notifications
You must be signed in to change notification settings - Fork 6
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
A completion can not go with no arguments. #2
base: master
Are you sure you want to change the base?
Conversation
I am also encountering the same error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm and it works on my machine
Same error on both Windows 11 with Powershell and Arch Linux on bash and zshrc ( although it may not be relevant ) LE: This branch's fix worked for me, thank you! |
Had the same issue with Ubuntu 22.04 on a Macbook using ohmyzsh. I applied this fix locally and it worked. Thanks! |
The fix works like a charm, thanks ! |
Just switched Vundle entry to @DehanLUO 's repo in vimrc and back on track 💯 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better change line 45 to:
command! -nargs=0 NERDTreeProjectLoadFromCWD call g:NERDTreeProject.LoadFromCWD()
There is no argument needed.
Yes. You are right.
Your version, Thanks. Have a good day! |
Reproduce the bug
~/.vim/vimrc
Open vim.
Describe the bug
My vim (8.2.3200) gives the following warning with the two plugins installed.
Looking at the repo for project.vim, the existing code causes the warning.
A completion should go with at least an argument, while -nargs=0 means no arguments are allowed. Changing to –nargs=?, specifying 0 or 1 arguments are allowed, can solve the problem.