47 lines
1.1 KiB
Lua
47 lines
1.1 KiB
Lua
return {
|
|
{
|
|
'nvim-tree/nvim-tree.lua',
|
|
version = '*',
|
|
lazy = false,
|
|
dependencies = {
|
|
'nvim-tree/nvim-web-devicons',
|
|
},
|
|
config = function()
|
|
require('nvim-tree').setup {
|
|
actions = {
|
|
open_file = {
|
|
resize_window = false,
|
|
},
|
|
},
|
|
renderer = {
|
|
highlight_git = 'all',
|
|
highlight_diagnostics = 'icon',
|
|
highlight_opened_files = 'all',
|
|
highlight_modified = 'all',
|
|
special_files = {},
|
|
icons = {
|
|
git_placement = 'signcolumn',
|
|
},
|
|
},
|
|
git = {
|
|
enable = true,
|
|
show_on_dirs = true,
|
|
show_on_open_dirs = true,
|
|
timeout = 400,
|
|
},
|
|
filesystem_watchers = {
|
|
enable = true,
|
|
debounce_delay = 50,
|
|
},
|
|
filters = {
|
|
enable = true,
|
|
git_ignored = true,
|
|
dotfiles = true,
|
|
},
|
|
}
|
|
|
|
vim.api.nvim_set_keymap('n', '\\', '<Cmd>NvimTreeToggle<CR>', { silent = true, noremap = true })
|
|
end,
|
|
},
|
|
}
|