dstein64 / nvim-scrollview

A Neovim plugin that displays interactive vertical scrollbars and signs.
MIT License
556 stars 10 forks source link

Option to start disabled #73

Closed cbirchinger closed 2 years ago

cbirchinger commented 2 years ago

When i use nvim-qt and it's GUI scrollbar i want to start NVIM with nvim-scrollview disabled. Something like "let g:scrollview_disabled" that i could drop into ginit.vim would help here.

I've experimented with au FileType * :ScrollViewDisable (also VimEnter, WinEnter, BufEnter), but for some reason when i launch nvim-qt [file] directly this fails. It only works when i launch Startify and pick an entry there.

GUI commands are also not initialized this early in init.vim, so it's also not easy to simply not load the "Plug" when a GUI is being used.

dstein64 commented 2 years ago

Hi @cbirchinger, setting g:scrollview_on_startup permits the functionality you've described:

E.g.,

let g:scrollview_on_startup = 0

Or in Lua:

vim.g.scrollview_on_startup = 0
cbirchinger commented 2 years ago

Yes, I see, thank you. I've checked the help page but missed it.