qvacua / vimr

VimR — Neovim GUI for macOS in Swift
https://twitter.com/VimRefined
MIT License
6.61k stars 218 forks source link

has("gui_vimr") Failed #1023

Closed charlestang closed 7 months ago

charlestang commented 7 months ago

has("gui_vimr") in my config file return 0.

Version 0.45.0 (20231122.130444)

I used has("gui_running") instead.

georgeharker commented 7 months ago

This is expected. g:gui_come should however be set to 1

georgeharker commented 7 months ago

I don’t think it’s possible to add options externally to a stock neovim without modifying source which we are trying to avoid doing.

wookayin commented 7 months ago

Since the awesome work #1015 by @georgeharker has("gui_running") seems no longer possible because Vimr no longer ships a patched neovim.

I think we can g:gui_vimr use instead. Documentations https://github.com/qvacua/vimr/wiki#initvim and previous configs need an update.

qvacua commented 7 months ago

Yes, if g:gui_vimr == 1 can be used. I updated the wiki page. Thanks, @wookayin !

qvacua commented 7 months ago

One better uses if exists("g:gui_vimr")