From 2d6f1aa756bb39845f00882b590ffd788b083d7d Mon Sep 17 00:00:00 2001 From: Michel Date: Fri, 6 Sep 2024 18:52:34 +0200 Subject: [PATCH] feat(neo-tree): don't follow unless asked --- lua/plugins/editor.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 22d543d..213a452 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -17,6 +17,15 @@ return { { "nvim-neo-tree/neo-tree.nvim", + keys = { + { + "E", + function() + require("neo-tree.command").execute({action="show", reveal=true}) + end, + desc = "NeoTree: reveal file", + }, + }, opts = { event_handlers = { { @@ -26,6 +35,13 @@ return { end, }, }, + filesystem = { + bind_to_cwd = false, + follow_current_file = { + enabled = false, + leave_dirs_open = true, + }, + }, }, },