From c22c0fb9985e93532e5bfe692e2f821bc4756313 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 14 Dec 2024 18:17:19 +0100 Subject: [PATCH] Neotree --- lua/keymaps.lua | 2 ++ lua/plugins/neo-tree.lua | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lua/plugins/neo-tree.lua diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 6d640a1..bb4ed64 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -81,6 +81,8 @@ vim.keymap.set('n', 'd', 'tabclose', { desc = 'Close Tab' vim.keymap.set('n', ']', 'tabnext', { desc = 'Next Tab' }) vim.keymap.set('n', '[', 'tabprevious', { desc = 'Previous Tab' }) +vim.keymap.set('n', '\\', 'Neotree toggle', { desc = 'Toggle Neotree' }) + -- Toggle LLM Suggestions vim.keymap.set('n', 'tt', function() local cp = require 'copilot.suggestion' diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua new file mode 100644 index 0000000..dacde08 --- /dev/null +++ b/lua/plugins/neo-tree.lua @@ -0,0 +1,10 @@ +return { + 'nvim-neo-tree/neo-tree.nvim', + branch = 'v3.x', + dependencies = { + 'nvim-lua/plenary.nvim', + 'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended + 'MunifTanjim/nui.nvim', + -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information + }, +}