tpope / vim-obsession

obsession.vim: continuously updated session files
http://www.vim.org/scripts/script.php?script_id=4472
1.74k stars 68 forks source link

[ Bug ] cmdheight after restore is incorrect #80

Open pronvis opened 8 months ago

pronvis commented 8 months ago

I have issue with NVIM v0.9.4 and use('tpope/vim-obsession').

I have vim.opt.cmdheight = 2 at 41 line in set.lua and if I open nvim with nvim -S -V9nvimlog to restore session from Session.vim and save log file. In log file I found:

  cmdheight=1
    Last set from ~/config_repo/nvim/lua/pronvis/set.lua line 41

which is weird... However if I open nvim with just nvim (without restoring session) then cmdheight value is 2 like in my config file.

link to my comment on similar issue: https://github.com/rmagatti/auto-session/issues/64#issuecomment-1870672047