We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7b20ca commit 621d634Copy full SHA for 621d634
lua/nvim-tree/renderer/components/modified.lua
@@ -8,7 +8,7 @@ local HIGHLIGHT = "NvimTreeModifiedFile"
8
---@param node table
9
---@return HighlightedString|nil modified icon
10
function M.get_icon(node)
11
- if not modified.is_modified(node) then
+ if not modified.is_modified(node) or not M.show_icon then
12
return nil
13
end
14
@@ -30,7 +30,8 @@ function M.get_highlight(node)
30
31
32
function M.setup(opts)
33
- M.icon = opts.renderer.icons.show.modified and opts.renderer.icons.glyphs.modified or nil
+ M.icon = opts.renderer.icons.glyphs.modified
34
+ M.show_icon = opts.renderer.icons.show.modified
35
36
M.setup_signs()
37
0 commit comments