2023-12-17 17:35:57 +01:00
|
|
|
-- TODO: set keymaps
|
|
|
|
|
|
|
|
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
|
|
|
|
},
|
2023-12-17 19:01:54 +01:00
|
|
|
lazy = false,
|
2023-12-17 17:35:57 +01:00
|
|
|
config = function()
|
|
|
|
require('neo-tree').setup({
|
|
|
|
filesystem = {
|
|
|
|
filtered_items = {
|
|
|
|
visible = true,
|
|
|
|
},
|
|
|
|
},
|
2023-12-17 19:31:26 +01:00
|
|
|
window = {
|
|
|
|
position = "right",
|
|
|
|
width = 30,
|
|
|
|
},
|
2023-12-17 17:35:57 +01:00
|
|
|
})
|
|
|
|
end,
|
2023-12-17 19:01:54 +01:00
|
|
|
keys = {
|
|
|
|
{ "<C-N>t", "<cmd>Neotree toggle<cr>", "Toggle 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>g", "<cmd>Neotree git_status focus<cr>", "Focus git status in Neotree" },
|
|
|
|
},
|
2023-12-17 17:35:57 +01:00
|
|
|
}
|