🎨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',
|
'NvimTreeCollapse',
|
||||||
'NvimTreeRefresh',
|
'NvimTreeRefresh',
|
||||||
},
|
},
|
||||||
|
init = function()
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
respect_buf_cwd = false,
|
respect_buf_cwd = false,
|
||||||
view = {
|
view = {
|
||||||
@@ -48,11 +51,11 @@ return {
|
|||||||
modified = '●',
|
modified = '●',
|
||||||
folder = {
|
folder = {
|
||||||
default = '',
|
default = '',
|
||||||
open = '',
|
open = '',
|
||||||
empty = '',
|
empty = '',
|
||||||
empty_open = '',
|
empty_open = '',
|
||||||
arrow_closed = '', -- arrow when folder is closed
|
arrow_closed = '',
|
||||||
arrow_open = '', -- arrow when folder is open
|
arrow_open = '',
|
||||||
},
|
},
|
||||||
git = {
|
git = {
|
||||||
unstaged = '✗',
|
unstaged = '✗',
|
||||||
@@ -94,10 +97,4 @@ return {
|
|||||||
show_on_open_dirs = true,
|
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