my_nvim_config/after/plugin/neotree.lua

27 lines
561 B
Lua
Raw Permalink Normal View History

2024-02-04 20:53:56 -05:00
require('neo-tree').setup({
sources = {
"filesystem",
"buffers",
2024-04-15 22:50:55 -04:00
"git_status",
2024-02-04 20:53:56 -05:00
},
filesystem = {
filtered_items = {
visible = true,
hide_gitignored = false,
hide_hidden = false,
hide_dotfiles = false,
},
2024-04-15 22:50:55 -04:00
follow_current_file =
2024-02-04 20:53:56 -05:00
{
enabled = true,
},
window = {
mappings = {
['<leftrelease>'] = 'open'
}
}
},
})
vim.keymap.set('n', '<leader>b', ':Neotree toggle<CR>')