neotree follow
This commit is contained in:
parent
843ab62e01
commit
3284a97a1e
|
@ -134,7 +134,7 @@ return {
|
||||||
event = 'InsertEnter',
|
event = 'InsertEnter',
|
||||||
dependencies = { 'rafamadriz/friendly-snippets' },
|
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||||
build = (not jit.os:find('Windows'))
|
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,
|
or nil,
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
|
|
|
@ -170,6 +170,11 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
filesystem = {
|
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 = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
['H'] = 'toggle_hidden',
|
['H'] = 'toggle_hidden',
|
||||||
|
@ -196,7 +201,7 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
group_empty_dirs = true,
|
group_empty_dirs = false,
|
||||||
use_libuv_file_watcher = true,
|
use_libuv_file_watcher = true,
|
||||||
bind_to_cwd = false,
|
bind_to_cwd = false,
|
||||||
cwd_target = {
|
cwd_target = {
|
||||||
|
@ -227,7 +232,7 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
buffers = {
|
buffers = {
|
||||||
bind_to_cwd = false,
|
bind_to_cwd = true,
|
||||||
window = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
['<BS>'] = 'navigate_up',
|
['<BS>'] = 'navigate_up',
|
||||||
|
|
Loading…
Reference in New Issue