Skip to content

Commit

Permalink
feat(plugin): show diagnostics on nvim tree
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Feb 4, 2024
1 parent a3c9225 commit 48366c6
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions lua/plugins/configs/tool/nvim-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,30 @@ return function()
corner = "",
edge = "",
item = "",
bottom = "",
none = " ",
},
},
root_folder_label = ":.:s?.*?/..?",
icons = {
webdev_colors = true,
web_devicons = {
file = {
enable = true,
color = true,
},
folder = {
enable = false,
color = true,
},
},
git_placement = "after",
show = {
file = true,
folder = true,
folder_arrow = true,
git = true,
-- modified = true,
diagnostics = true,
},
padding = " ",
symlink_arrow = " 󰁔 ",
Expand Down Expand Up @@ -162,9 +174,14 @@ return function()
},
},
diagnostics = {
enable = false,
show_on_dirs = false,
enable = true,
show_on_dirs = true,
show_on_open_dirs = true,
debounce_delay = 50,
severity = {
min = vim.diagnostic.severity.HINT,
max = vim.diagnostic.severity.ERROR,
},
icons = {
hint = icons.diagnostics.Hint_alt,
info = icons.diagnostics.Information_alt,
Expand Down

0 comments on commit 48366c6

Please sign in to comment.