neotree follow

This commit is contained in:
Christoph J. Scherr 2023-09-06 20:14:57 +02:00
parent 843ab62e01
commit 3284a97a1e
2 changed files with 8 additions and 3 deletions

View File

@ -134,7 +134,7 @@ return {
event = 'InsertEnter',
dependencies = { 'rafamadriz/friendly-snippets' },
build = (not jit.os:find('Windows'))
and "echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp"
and "echo 'jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp"
or nil,
-- stylua: ignore
keys = {

View File

@ -170,6 +170,11 @@ return {
},
},
filesystem = {
follow_current_file = {
enabled = true, -- This will find and focus the file in the active buffer every time
-- -- the current file is changed while the tree is open.
leave_dirs_open = true, -- `false` closes auto expanded dirs, such as with `:Neotree reveal`
},
window = {
mappings = {
['H'] = 'toggle_hidden',
@ -196,7 +201,7 @@ return {
end,
},
},
group_empty_dirs = true,
group_empty_dirs = false,
use_libuv_file_watcher = true,
bind_to_cwd = false,
cwd_target = {
@ -227,7 +232,7 @@ return {
},
},
buffers = {
bind_to_cwd = false,
bind_to_cwd = true,
window = {
mappings = {
['<BS>'] = 'navigate_up',