Neovide: Allow changing window size from config variables

Created on 6 Mar 2020  路  10Comments  路  Source: Kethku/neovide

I had my guifont set in ${nvim_config_dir}/ginit.vim, but Neovide didn't pick it up until I moved the line to init.vim. I'm not sure if it's a Neovim standard file, but it seems to be standard among other GUI clients I've used.

Also (possibly a separate issue?), it would be nice to have a variable I could check to detect if I'm running in Neovide. E.g., Neovim-Gtk uses

if exists('g:GtkGuiLoaded')
  " some code here
endif
enhancement

Most helpful comment

@Kethku commented in a different issue:

set guifont=Delugia\ Nerd\ Font:h12

which has worked for me, as long as the config file is parsed.

All 10 comments

Also, is there a way to set the inintial lines and columns? I tried adding

set lines=40
set columns=120

in my init.vim, but that doesn't seem to get picked up, and setting them after launch doesn't resize the window.

Just pushed a fix which loads ginit.vim
Neovide declares a global variable "g:neovide" which you can use like you say

I'm not sure how lines and columns setting should work... Let me think about it

Thanks for being so responsive! Neovide is the best Neovim GUI I've used yet, so I'm interested in making it my daily driver.

How does one set the font and size in neovide?

@Kethku commented in a different issue:

set guifont=Delugia\ Nerd\ Font:h12

which has worked for me, as long as the config file is parsed.

(I'm a bit blind at times methinks!)

Now I just need https://github.com/Kethku/neovide/issues/27 ... ;)

I'm on commit ef2d99b and I still find that the ginit.vim does not seem to be loaded. I've had to move my neovide config to init.vim as well

Tried this again with the latest (36e3040) and ginit.vim still does not appear to be loaded

On 0b976c3 the ginit.vim still doesn't loaded.

That is a separate issue. I will create it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

svermeulen picture svermeulen  路  26Comments

shaunsingh picture shaunsingh  路  27Comments

deisi picture deisi  路  28Comments

ssxwcz picture ssxwcz  路  50Comments

Kethku picture Kethku  路  87Comments