fix(#2637): show buffer modified icons and highlights (#2638)

This commit is contained in:
Alexander Courtis
2024-01-21 17:24:43 +11:00
committed by GitHub
parent 48b1d8638f
commit 7bdb220d0f
3 changed files with 2 additions and 45 deletions

View File

@@ -10,7 +10,7 @@ local legacy = require "nvim-tree.legacy"
local core = require "nvim-tree.core"
local git = require "nvim-tree.git"
local filters = require "nvim-tree.explorer.filters"
local modified = require "nvim-tree.modified"
local buffers = require "nvim-tree.buffers"
local events = require "nvim-tree.events"
local notify = require "nvim-tree.notify"
@@ -313,7 +313,7 @@ local function setup_autocommands(opts)
create_nvim_tree_autocmd({ "BufModifiedSet", "BufWritePost" }, {
callback = function()
utils.debounce("Buf:modified", opts.view.debounce_delay, function()
modified.reload()
buffers.reload_modified()
actions.reloaders.reload_explorer()
end)
end,