Skip to content

Commit 7bdb220

Browse files
authored
fix(#2637): show buffer modified icons and highlights (#2638)
1 parent 48b1d86 commit 7bdb220

File tree

3 files changed

+2
-45
lines changed

3 files changed

+2
-45
lines changed

lua/nvim-tree.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local legacy = require "nvim-tree.legacy"
1010
local core = require "nvim-tree.core"
1111
local git = require "nvim-tree.git"
1212
local filters = require "nvim-tree.explorer.filters"
13-
local modified = require "nvim-tree.modified"
13+
local buffers = require "nvim-tree.buffers"
1414
local events = require "nvim-tree.events"
1515
local notify = require "nvim-tree.notify"
1616

@@ -313,7 +313,7 @@ local function setup_autocommands(opts)
313313
create_nvim_tree_autocmd({ "BufModifiedSet", "BufWritePost" }, {
314314
callback = function()
315315
utils.debounce("Buf:modified", opts.view.debounce_delay, function()
316-
modified.reload()
316+
buffers.reload_modified()
317317
actions.reloaders.reload_explorer()
318318
end)
319319
end,

lua/nvim-tree/modified.lua

Lines changed: 0 additions & 41 deletions
This file was deleted.

lua/nvim-tree/renderer/builder.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ local live_filter = require "nvim-tree.live-filter"
44
local notify = require "nvim-tree.notify"
55
local utils = require "nvim-tree.utils"
66
local view = require "nvim-tree.view"
7-
local log = require "nvim-tree.log"
87

98
local DecoratorBookmarks = require "nvim-tree.renderer.decorator.bookmarks"
109
local DecoratorCopied = require "nvim-tree.renderer.decorator.copied"
@@ -230,7 +229,6 @@ function Builder:format_line(indent_markers, arrows, icon, name, node)
230229
add_to_end(line, M.decorators[i]:icons_after(node))
231230
end
232231

233-
log.line("dev", "line = %s", vim.inspect(line))
234232
return line
235233
end
236234

0 commit comments

Comments
 (0)