refactoring

This commit is contained in:
Jérémie SALVI
2025-01-11 19:32:59 +01:00
parent 42d992f2a0
commit 3a6258ccf0

View File

@@ -1,7 +1,7 @@
--- Ensure plugin is avaiable --- Ensure plugin is avaiable
local ok, nvimtree = pcall(require, "nvim-tree") local ok, nvimtree = pcall(require, "nvim-tree")
if not ok then if not ok then
return return
end end
--- Unload netrw --- Unload netrw
@@ -10,32 +10,32 @@ vim.g.loaded_netrwPlugin = 1
--- Plugin options --- Plugin options
local opts = { local opts = {
sort = { sort = {
-- sorter = "case_sensitive", -- sorter = "case_sensitive",
}, },
view = { view = {
width = 30, width = 30,
}, },
renderer = { renderer = {
group_empty = true, group_empty = true,
indent_markers = { indent_markers = {
enable = true, enable = true,
}, },
icons = { icons = {
glyphs = { glyphs = {
folder = { folder = {
arrow_closed = "", -- arrow when folder is closed arrow_closed = "", -- arrow when folder is closed
arrow_open = "", -- arrow when folder is open arrow_open = "", -- arrow when folder is open
}, },
}, },
}, },
}, },
filters = { filters = {
dotfiles = false, dotfiles = false,
}, },
diagnostics = { diagnostics = {
enable = true, enable = true,
}, },
} }
--- Load plugin --- Load plugin