Skip to content

Conversation

@rafikdraoui
Copy link
Owner

Without this, the message is cleared before the UI is fully initialized. This also allows us to use the default INFO log level. Previously, using WARN level was required to make the message display. But now it seems like even WARN level is not enough to keep the message displayed.

I'm not a fan of using those time.sleep()-type of "fixes". And it's possible that using a 100ms delay is not appropriate for all set ups, but just happens to work for me as of September 4 2025. But I don't have time right now to find a proper fix, let alone investigate and bisect when the behaviour changed in Neovim.

This can be replicated with:

$ nvim --clean --noplugin -c 'lua vim.notify("hello")'

versus

$ nvim --clean --noplugin -c 'lua vim.defer_fn(function() vim.notify("hello") end, 100)'

The first one doesn't have any message in the :messages section, while the latter does (using Neovim v0.11.3).

Base automatically changed from show-usage-option to main September 6, 2025 14:29
Without this, the message is cleared before the UI is fully initialized.
This also allows us to use the default INFO log level. Previously, using
WARN level was required to make the message display. But now it seems
like even WARN level is not enough to keep the message displayed.

I'm not a fan of using those `time.sleep()`-type of "fixes". And it's
possible that using a 100ms delay is not appropriate for all set ups,
but just happens to work for me as of September 4 2025. But I don't have
time right now to find a proper fix, let alone investigate and bisect
when the behaviour changed in Neovim.

This can be replicated with:

    $ nvim --clean --noplugin -c 'lua vim.notify("hello")'

versus

    $ nvim --clean --noplugin -c 'lua vim.defer_fn(function() vim.notify("hello") end, 100)'

The first one doesn't have any message in the `:messages` section, while
the latter does (using Neovim v0.11.3).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants