From: Samir Benmendil Date: Wed, 12 Apr 2023 23:18:32 +0000 (+0100) Subject: nvim: configure neo-tree X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/cc36d6c574a5f96c6a99c9b1aeaa2423fd2b1677 nvim: configure neo-tree --- 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, + }, }