Skip to content

How to prevent the BufEnter event from being executed when opening the Lazy panel? #1035

Answered by abeldekat
ericktucto asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @ericktucto,

How do I prevent the BufEnter event from being executed when opening the Lazy panel?

I don't think you should try to prevent that, as BufEnter is useful for setting options for a file type(:h BufEnter).
You could load indent-blankline.nvim on event = { "BufReadPost", "BufNewFile" }
Those events are also used in LazyVim's ui.lua

Best regards!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ericktucto
Comment options

@abeldekat
Comment options

Answer selected by ericktucto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants