summaryrefslogtreecommitdiff
path: root/lua/kickstart/plugins/neo-tree.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-04-17 21:25:54 +0200
committerGitHub <noreply@github.com>2024-04-17 15:25:54 -0400
commit5e258d276fef52cc45a17021dc83a95748a0bc7f (patch)
tree28f7e5d6922f1eb68f8d19bf8164e6cd3e105137 /lua/kickstart/plugins/neo-tree.lua
parent5540527fabc2776cf62b63ef511079b1c8bf5297 (diff)
Move plugin examples from README to optional plugin files (#831)
* Move autopairs example from README to an optional plugin * Move neo-tree example from README to an optional plugin
Diffstat (limited to 'lua/kickstart/plugins/neo-tree.lua')
-rw-r--r--lua/kickstart/plugins/neo-tree.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/kickstart/plugins/neo-tree.lua b/lua/kickstart/plugins/neo-tree.lua
new file mode 100644
index 0000000..c793b88
--- /dev/null
+++ b/lua/kickstart/plugins/neo-tree.lua
@@ -0,0 +1,25 @@
+-- Neo-tree is a Neovim plugin to browse the file system
+-- https://github.com/nvim-neo-tree/neo-tree.nvim
+
+return {
+ 'nvim-neo-tree/neo-tree.nvim',
+ version = '*',
+ dependencies = {
+ 'nvim-lua/plenary.nvim',
+ 'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
+ 'MunifTanjim/nui.nvim',
+ },
+ cmd = 'Neotree',
+ keys = {
+ { '\\', ':Neotree reveal<CR>', { desc = 'NeoTree reveal' } },
+ },
+ opts = {
+ filesystem = {
+ window = {
+ mappings = {
+ ['\\'] = 'close_window',
+ },
+ },
+ },
+ },
+}