Skip to content

Commit b4ef5e0

Browse files
committed
fixed :wq doesn't update modified indicator
1 parent b3ed7c9 commit b4ef5e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/nvim-tree.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ local function setup_autocommands(opts)
479479
end
480480

481481
if opts.modified.enable then
482-
-- TODO: :wq doesn't update properly
483-
create_nvim_tree_autocmd("BufModifiedSet", {
482+
create_nvim_tree_autocmd({ "BufModifiedSet", "BufWritePost" }, {
484483
callback = function()
485484
utils.debounce("BufModifiedSet:modified_files", opts.modified.debounce_delay, function()
486485
modified.reload()

0 commit comments

Comments
 (0)