diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua index b547928..54c0fee 100644 --- a/lua/plugins/neo-tree.lua +++ b/lua/plugins/neo-tree.lua @@ -10,23 +10,38 @@ return { -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information }, lazy = false, - config = function() - require('neo-tree').setup({ - filesystem = { - filtered_items = { - visible = true, - }, + opts = { + filesystem = { + filtered_items = { + visible = true, + hide_dotfiles = false, + hide_gitignored = false, + hide_hidden = false, }, - window = { - position = "right", - width = 30, + follow_current_file = { + enabled = true, }, - }) - end, + group_empty_dirs = true, + use_libuv_file_watcher = true, + }, + buffers = { + follow_current_file = { + enabled = true, + }, + group_empty_dirs = true, + }, + window = { + position = "right", + width = 30, + }, + source_selector = { + winbar = true, + } + }, keys = { - { "t", "Neotree toggle", "Toggle Neotree" }, + { "t", "Neotree toggle", "Toggle Neotree" }, { "f", "Neotree filesystem focus", "Focus filesystem in Neotree" }, - { "b", "Neotree buffers focus", "Focus buffers in Neotree" }, + { "b", "Neotree buffers focus", "Focus buffers in Neotree" }, { "g", "Neotree git_status focus", "Focus git status in Neotree" }, }, }