🎨refactor: improve structure and change 1 icon
change the icon for open folder to non-empty move vim.opt into `init`
This commit is contained in:
@@ -7,6 +7,9 @@ return {
|
||||
'NvimTreeCollapse',
|
||||
'NvimTreeRefresh',
|
||||
},
|
||||
init = function()
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
end,
|
||||
opts = {
|
||||
respect_buf_cwd = false,
|
||||
view = {
|
||||
@@ -48,11 +51,11 @@ return {
|
||||
modified = '●',
|
||||
folder = {
|
||||
default = '',
|
||||
open = '',
|
||||
open = '',
|
||||
empty = '',
|
||||
empty_open = '',
|
||||
arrow_closed = '', -- arrow when folder is closed
|
||||
arrow_open = '', -- arrow when folder is open
|
||||
arrow_closed = '',
|
||||
arrow_open = '',
|
||||
},
|
||||
git = {
|
||||
unstaged = '✗',
|
||||
@@ -94,10 +97,4 @@ return {
|
||||
show_on_open_dirs = true,
|
||||
},
|
||||
},
|
||||
|
||||
config = function(_, opts)
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
require('nvim-tree').setup(opts)
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user