Skip to content

Commit 6a31f24

Browse files
committed
fix: hijack_cursor with update_focused_file
1 parent 50f30bc commit 6a31f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ local function setup_autocommands(opts)
233233
create_nvim_tree_autocmd("TabEnter", { callback = vim.schedule_wrap(M.tab_enter) })
234234
end
235235
if opts.hijack_cursor then
236-
create_nvim_tree_autocmd("CursorMoved", {
236+
create_nvim_tree_autocmd({ "CursorMoved", "BufEnter" }, {
237237
pattern = "NvimTree_*",
238238
callback = function()
239239
if utils.is_nvim_tree_buf(0) then

0 commit comments

Comments
 (0)