How to prevent the BufEnter event from being executed when opening the Lazy panel? #1035
-
I am including indent-blankline return {
"lukas-reineke/indent-blankline.nvim",
lazy = true,
config = true,
event = "BufEnter",
} I am using BufEnter event to load indent-blankline, but this plugin is loading when I open Lazy panel (:Lazy) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @ericktucto,
I don't think you should try to prevent that, as Best regards! |
Beta Was this translation helpful? Give feedback.
Hello @ericktucto,
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
onevent = { "BufReadPost", "BufNewFile" }
Those events are also used in
LazyVim
'sui.lua
Best regards!