dotfiles-nvim/lua/plugins/neo-tree.lua

33 lines
1 KiB
Lua
Raw Normal View History

2023-12-18 09:11:00 +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
},
lazy = false,
config = function()
require('neo-tree').setup({
filesystem = {
filtered_items = {
visible = true,
},
},
window = {
position = "right",
width = 30,
},
})
end,
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" },
},
}