Skip to content

Commit aeb2391

Browse files
committed
improvements rpe review
1 parent 911db0f commit aeb2391

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ local function setup_autocommands(opts)
311311
if opts.update_cwd then
312312
create_nvim_tree_autocmd("DirChanged", {
313313
callback = function()
314-
M.change_dir(vim.loop.cwd)
314+
M.change_dir(vim.loop.cwd())
315315
end,
316316
})
317317
end

lua/nvim-tree/actions/open-file.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ function M.fn(mode, filename)
260260
vim.api.nvim_create_autocmd({ "TextChanged", "TextChangedI" }, {
261261
group = vim.api.nvim_create_augroup("RemoveBufHidden", {}),
262262
buffer = vim.api.nvim_get_current_buf(),
263-
command = "setlocal bufhidden=",
263+
callback = function()
264+
vim.bo.bufhidden = ""
265+
end,
264266
once = true,
265267
})
266268
end

0 commit comments

Comments
 (0)