diff options
| author | William Hergès <william@herges.fr> | 2025-09-14 21:48:14 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-09-14 21:48:14 +0200 |
| commit | 10dbc7044b269b687313ea7a70fb8cd5c59d0b60 (patch) | |
| tree | 34b5ea10709ec4c67d5f8e595936aeda9b6e54d2 /config/nvim/lua/plugins | |
| parent | 47f9953b90bc47c8b62833d8d7a7a9a008d5636b (diff) | |
feat(nvim): missing keybindings and neotree
Diffstat (limited to 'config/nvim/lua/plugins')
| -rw-r--r-- | config/nvim/lua/plugins/neotree.lua | 29 |
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" + } + } + } +} |
