-
Notifications
You must be signed in to change notification settings - Fork 57
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
Detect nyaovim with has
command
#113
Comments
if exists('g:nyaovim_version')
" Code for NyaoVim
endif The variable is set in command line argument: https://github.com/rhysd/NyaoVim/blob/master/renderer/nyaovim-app.ts#L253 |
That would work. Sadly it doesn't for me. |
Hmm... I don't have any idea why the variable does not exist. You don't need to set the command line argument manually. It is automatically set by NyaoVim. |
Anything I can do to debug the issue?
|
Thank you for your information and offer. But I need to try to reproduce at first with the latest neovim. |
Same issue here: on Linux it's exists, while on Windows it isn't. Linux (Ubuntu 16.04 LTS "Xenial Xerus" x64)
Windows 7 x64
|
I would like to be able to detect if nyaovim is running or not so I can load plugins conditionally.
E.g. with
has('nyaovim')
just likehas('nvim')
andhas('python')
Expected Behavior
running nyaovim:
:echo has('nyaovim') -> 1
running gui or terminal:
:echo has('nyaovim') -> 0
Actual Behavior
running nyaovim:
:echo has('nyaovim') -> 0
running gui or terminal:
:echo has('nyaovim') -> 0
Steps to Reproduce (including precondition)
:echo has('nyaovim')
0
(I would have expected1
)Screenshot on This Problem (if possible)
I do not think that is neccessary
Your Environment
nvim
version: 0.1.7The text was updated successfully, but these errors were encountered: