Original Article
You can find more context on the problem here This fix didn’t actually work the actual fix can be found hereIn my post last month I thought I had fixed this issue but turns out I did not. The actual fix to stop getting this error:
5108: Error executing lua [string "v:lua"]:1: attempt to call global 'dropbar' (a nil value)
stack traceback:
[string "v:lua"]:1: in main chunk
bat /home/haseeb/.local/share/nixCats-nvim/sessions/%2Fhome%2Fhaseeb%2Fprojects%2Fvoxicle.vim | rg dropbar
setlocal winbar=%{%v:lua.dropbar()%}
setlocal winbar=%{%v:lua.dropbar()%}
setlocal winbar=%{%v:lua.dropbar()%}
We want the winbar to nil. The fix that worked for me was this:
vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
require("auto-session").setup({
pre_save_cmds = {
function()
vim.cmd([[
noautocmd windo set winbar=
noautocmd windo setlocal winbar=
]])
end,
},
})