From eeca3f096ff52556ef810bfb65414113bf47d8f8 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 13 Apr 2023 00:18:32 +0100 Subject: [PATCH] nvim: configure neo-tree --- nvim/lua/plugins/editor.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/nvim/lua/plugins/editor.lua b/nvim/lua/plugins/editor.lua index af05279..8b26d41 100644 --- a/nvim/lua/plugins/editor.lua +++ b/nvim/lua/plugins/editor.lua @@ -8,4 +8,26 @@ return { { "gs", false }, }, }, + { + "neo-tree.nvim", + opts = { + filesystem = { + -- TODO: review these + bind_to_cwd = false, + follow_current_file = { + enabled = false, + }, + }, + }, + keys = function() + local NeoTree = function(args) + return function() + require("neo-tree.command").execute(args) + end + end + return { + { "fe", NeoTree({ toggle = true, dir = vim.loop.cwd() }) }, + } + end, + }, } -- 2.48.1