Open likalium opened 4 months ago
This is related to #175 and I can reproduce only if I sufficiently shrink the window.
While I try to figure out how to properly handle this, here is a workaround:
:au VimLeavePre * set stl=
interestingly this does not work on VimLeavePre
, but it does if done manually
:au VimLeavePre * au! Heirline_update_autocmds
Hello, I have three statusline components that, when updating, execute
vim.schedule_wrap(function() ... end)
as callback:The functions for the
git
anddiagnostics
component is to fix the fact that they are updated only on cursor move (see #182). In fact myupdate = {...}
on these components is just an adaptation of the autocommands given in #182.My problem is that, if more than one of these statusline components are loaded, then on exiting neovim spits an error (see below). But if only one of these is loaded, then no error is given on exit. Also, every component is working perfectly, even if it shows an error on exit. It's just annoying, because the error make neovim to delay when quitting, and also it's still concerning to have an error but you don't really know why. Also, #175 is maybe related. I just wanted to conclude that, thank you VERY much for developing heirline.nvim. I find it an awesome plugin, and I'm really glad you're maintaining it!
The error message:
NB: "sodium" is my username