From accd0237d3cb3b061fcfc7b29ef769a505d6a191 Mon Sep 17 00:00:00 2001 From: servostar Date: Thu, 31 Oct 2024 11:06:01 +0100 Subject: [PATCH] feat(plugin): added neo-tree plugin --- lua/plugins/neo-tree.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lua/plugins/neo-tree.lua diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua new file mode 100644 index 0000000..cea7759 --- /dev/null +++ b/lua/plugins/neo-tree.lua @@ -0,0 +1,40 @@ +return { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", + "MunifTanjim/nui.nvim" + }, + cmd = "Neotree", + opts = { + filesystem = { + bind_to_cwd = false, + follow_current_file = { enabled = true }, + use_libuv_file_watcher = true, + hijack_netrw_behavior = "open_default", + filtered_items = { + hide_dotfiles = false, + hide_gitignored = false, + hide_hidden = false, -- only works on Windows for hidden files/directories + } + }, + close_if_last_window = false, + default_component_configs = { + container = { + enable_character_fade = true + }, + indent = { + indent_size = 2, + padding = 1, -- extra padding on left hand side + with_markers = true, + indent_marker = "│", + last_indent_marker = "└", + with_expanders = true, -- if nil and file nesting is enabled, will enable expanders + expander_collapsed = "", + expander_expanded = "", + expander_highlight = "NeoTreeExpander", + } + } + } +}