neo-tree: style

This commit is contained in:
kalmenn 2023-12-20 12:01:08 +01:00
parent 2837f0ff05
commit b0965ec1a3
Signed by: kalmenn
GPG key ID: F500055C44BC3834

View file

@ -10,23 +10,38 @@ return {
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
}, },
lazy = false, lazy = false,
config = function() opts = {
require('neo-tree').setup({ filesystem = {
filesystem = { filtered_items = {
filtered_items = { visible = true,
visible = true, hide_dotfiles = false,
}, hide_gitignored = false,
hide_hidden = false,
}, },
window = { follow_current_file = {
position = "right", enabled = true,
width = 30,
}, },
}) group_empty_dirs = true,
end, 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 = { keys = {
{ "<C-N>t", "<cmd>Neotree toggle<cr>", "Toggle Neotree" }, { "<C-N>t", "<cmd>Neotree toggle<cr>", "Toggle Neotree" },
{ "<C-N>f", "<cmd>Neotree filesystem focus<cr>", "Focus filesystem in Neotree" }, { "<C-N>f", "<cmd>Neotree filesystem focus<cr>", "Focus filesystem in Neotree" },
{ "<C-N>b", "<cmd>Neotree buffers focus<cr>", "Focus buffers in Neotree" }, { "<C-N>b", "<cmd>Neotree buffers focus<cr>", "Focus buffers in Neotree" },
{ "<C-N>g", "<cmd>Neotree git_status focus<cr>", "Focus git status in Neotree" }, { "<C-N>g", "<cmd>Neotree git_status focus<cr>", "Focus git status in Neotree" },
}, },
} }