49 lines
1.1 KiB
Lua
49 lines
1.1 KiB
Lua
|
|
-----------------------------------------------------------
|
||
|
|
-- File manager configuration file
|
||
|
|
-----------------------------------------------------------
|
||
|
|
|
||
|
|
-- Plugin: nvim-tree
|
||
|
|
-- url: https://github.com/kyazdani42/nvim-tree.lua
|
||
|
|
|
||
|
|
--- Keybindings are defined in `keymapping.lua`:
|
||
|
|
--- https://github.com/kyazdani42/nvim-tree.lua#keybindings
|
||
|
|
|
||
|
|
--- Note: options under the g: command should be set BEFORE running the
|
||
|
|
--- setup function: https://github.com/kyazdani42/nvim-tree.lua#setup
|
||
|
|
--- See: `help NvimTree`
|
||
|
|
local g = vim.g
|
||
|
|
|
||
|
|
g.nvim_tree_quit_on_open = 0
|
||
|
|
g.nvim_tree_indent_markers = 1
|
||
|
|
g.nvim_tree_git_hl = 1
|
||
|
|
g.nvim_tree_highlight_opened_files = 1
|
||
|
|
g.nvim_tree_disable_window_picker = 1
|
||
|
|
g.nvim_tree_respect_buf_cwd = 1
|
||
|
|
g.nvim_tree_width_allow_resize = 1
|
||
|
|
g.nvim_tree_show_icons = {
|
||
|
|
git = 1,
|
||
|
|
folders = 1,
|
||
|
|
files = 1
|
||
|
|
}
|
||
|
|
|
||
|
|
g.nvim_tree_icons = {
|
||
|
|
default = "‣ "
|
||
|
|
}
|
||
|
|
|
||
|
|
require('nvim-tree').setup {
|
||
|
|
open_on_setup = true,
|
||
|
|
update_cwd = true,
|
||
|
|
filters = {
|
||
|
|
dotfiles = true,
|
||
|
|
custom = { '.git', 'node_modules', '.cache', '.bin' },
|
||
|
|
},
|
||
|
|
git = {
|
||
|
|
enable = true,
|
||
|
|
ignore = true,
|
||
|
|
},
|
||
|
|
view = {
|
||
|
|
width = 32,
|
||
|
|
auto_resize = true
|
||
|
|
},
|
||
|
|
}
|