aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'config/nvim/lua/plugins')
-rw-r--r--config/nvim/lua/plugins/neotree.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/config/nvim/lua/plugins/neotree.lua b/config/nvim/lua/plugins/neotree.lua
new file mode 100644
index 0000000..70462e6
--- /dev/null
+++ b/config/nvim/lua/plugins/neotree.lua
@@ -0,0 +1,29 @@
+return {
+ 'nvim-neo-tree/neo-tree.nvim',
+ branch = "v3.x",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ "MunifTanjim/nui.nvim",
+ "nvim-tree/nvim-web-devicons", -- optional, but recommended
+ },
+ lazy = false, -- neo-tree will lazily load itself
+ opts = {
+ close_if_last_window = true,
+ enable_git_status = true,
+ default_component_configs = {
+ indent = {
+ ident_size = 4,
+ padding = 2
+ }
+ },
+ window = {
+ mappings = {
+ ["<cr>"] = "open",
+ ["esc"] = "cancel",
+ ["<A-cr>"] = "open_tabnew",
+ ["<r>"] = "rename",
+ ["<d>"] = "delete"
+ }
+ }
+ }
+}