qvacua / vimr

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

Colorscheme takes 5 seconds to take effect #1029

Closed carlmueller closed 10 months ago

carlmueller commented 11 months ago

VimR version 0.45.0 neovim version 0.9.4 macOS Sonoma 14.1.2 M1 iMac

My ginit.vim has one line: colorscheme koehler

When I start vimr, either with command line or the icon, I see default colors for 5 seconds, and then it switches to the koehler color scheme. The same thing happens with any other color scheme, and likewise if I source ginit.vim in init.vim.

5 seconds is not a long time, but with other nvim gui programs I get the correct colors immediately. It works with neovim-qt, goneovim, neovide.

carlmueller commented 11 months ago

Sorry, sourcing ginit.vim works after all, but I would still prefer to just put gui settings in ginit.vim.

The following, which appears in the documentation, causes problems with other neovim front ends. if g:gui_vimr == 1

Instead, I used: if exists("g:gui_vimr") source ~/.config/nvim/ginit.vim endif

carlmueller commented 10 months ago

Thanks, fixed with VimR version 0.45.3