From 85d7d7c082bd84d3c701ceec3d477ee37db5c827 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 18 Feb 2024 08:19:51 +0100 Subject: bootstrap --- lua/plugins/core/nvim-tree.lua | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lua/plugins/core/nvim-tree.lua (limited to 'lua/plugins/core/nvim-tree.lua') diff --git a/lua/plugins/core/nvim-tree.lua b/lua/plugins/core/nvim-tree.lua new file mode 100644 index 0000000..e8ca82f --- /dev/null +++ b/lua/plugins/core/nvim-tree.lua @@ -0,0 +1,36 @@ +return { + { + "nvim-tree/nvim-tree.lua", + config = function() + require("nvim-tree").setup({ + sync_root_with_cwd = false, + update_focused_file = { + enable = true, + update_root = false, + }, + renderer = { + indent_markers = { enable = true }, + highlight_git = true, + highlight_opened_files = "all", + }, + }) + end, + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, + + -- Add nvim-tree which-key shortcuts + { + "folke/which-key.nvim", + opts = function(_, opts) + if type(opts) ~= "table" then + opts = {} + end + + if type(opts.f) ~= "table" then + opts["f"] = {} + end + + opts.f["e"] = { "NvimTreeToggle", "Explorer" } + end, + }, +} -- cgit v1.2.3