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 9311cfb commit e0d737dCopy full SHA for e0d737d
lua/nvim-tree/renderer/components/diagnostics.lua
@@ -1,6 +1,8 @@
1
local HL_POSITION = require("nvim-tree.enum").HL_POSITION
2
local diagnostics = require("nvim-tree.diagnostics")
3
4
+local DirectoryNode = require("nvim-tree.node.directory")
5
+
6
local M = {
7
-- highlight strings for the icons
8
HS_ICON = {},
@@ -24,7 +26,7 @@ function M.get_highlight(node)
24
26
25
27
local group
28
local diag_status = diagnostics.get_diag_status(node)
- if node.nodes then
29
+ if node:is(DirectoryNode) then
30
group = M.HS_FOLDER[diag_status and diag_status.value]
31
else
32
group = M.HS_FILE[diag_status and diag_status.value]
0 commit comments