vhakulinen / gnvim

GUI for neovim, without any web bloat
MIT License
1.85k stars 69 forks source link

has('gui_running') not working #156

Closed kernel-panic96 closed 3 years ago

kernel-panic96 commented 3 years ago

Hello, love the look of the editor. I'm in a period where I use both nvim and gnvim and I cannot find a way to config it in my .vimrc, the if guard of has('gui_running') does not work. Also the suggestion in :h gvim to to autocmd based on the UIEnter event, for some reason gets sourced in nvim and the gnvim commands error out because they don't exist in plain nvim. Is there a preferred way to config the editor and if not can you provide one, please?

vhakulinen commented 3 years ago

Gnvim sets g:gnvim which can be used as a guard for gnvim configuration in your init.vim (ref: https://github.com/vhakulinen/gnvim/issues/116#issuecomment-544961162).