Closed malob closed 5 years ago
This plugin doesn't run on its own when creating a new tab. That must happen because of a custom autocmd.
Thanks for the quick response!
You're totally right. I had au TabNewEntered * Startify
in my config. Removing it solved the issue.
Any quick ideas off the top of your head about how I could get new empty tabs to open with Startify but when commands like checkhealth
open a new tab, those don't trigger Startify?
The problem is that :checkhealth
will eventually run this line. Due to that :tabnew
, :Startify
will run before going to the next line and the following code simply expects a normal empty scratch buffer instead of a Startify buffer.
The only way around that would be changing the checkhealth code. I'll discuss that with the Nvim team!
So, we came to the conclusion not to change the above line from checkhealth to noautocmd tabnew
, because that could break other plugins.
Instead I'll change the FAQ (:h startify-faq-17
) to mention that running :Startify
on a new tab could result in all kinds of issues like this and that everyone should know exactly what they're doing.
In this particular case, you can work around this via :noau checkhealth
(or better remove that autocmd and just create a mapping for :Startify
).
Probably not what you wanted to hear, but this is one of the cases that has no real solution. Fixing one's workflow, breaks the workflow of someone else.
Thanks man, really appreciate the help/info!
When I run
:checkhealth
from any buffer innvim
, a new tab is opened that displays Startify (but without any colors and I get the following error:I'm running Neovim 0.3.4, with the latest version of Startify and the following configuration options in my
init.vim
for Startify: