aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-09-14 21:48:14 +0200
committerWilliam Hergès <william@herges.fr>2025-09-14 21:48:14 +0200
commit10dbc7044b269b687313ea7a70fb8cd5c59d0b60 (patch)
tree34b5ea10709ec4c67d5f8e595936aeda9b6e54d2 /config/nvim/lua/plugins
parent47f9953b90bc47c8b62833d8d7a7a9a008d5636b (diff)
feat(nvim): missing keybindings and neotree
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"
+ }
+ }
+ }
+}