mirror of
https://github.com/duma799/hyprduma-config.git
synced 2026-05-13 14:11:01 +00:00
42 lines
1.2 KiB
Lua
Executable File
42 lines
1.2 KiB
Lua
Executable File
return {
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
branch = "v3.x",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"nvim-tree/nvim-web-devicons",
|
|
"MunifTanjim/nui.nvim",
|
|
},
|
|
config = function()
|
|
require("neo-tree").setup({
|
|
close_if_last_window = false,
|
|
popup_border_style = "rounded",
|
|
enable_git_status = true,
|
|
enable_diagnostics = true,
|
|
filesystem = {
|
|
filtered_items = {
|
|
visible = false,
|
|
hide_dotfiles = false,
|
|
hide_gitignored = false,
|
|
},
|
|
follow_current_file = {
|
|
enabled = false,
|
|
},
|
|
use_libuv_file_watcher = true,
|
|
},
|
|
window = {
|
|
position = "left",
|
|
width = 30,
|
|
},
|
|
event_handlers = {
|
|
{
|
|
event = "file_opened",
|
|
handler = function()
|
|
require("neo-tree.command").execute({ action = "close" })
|
|
end,
|
|
},
|
|
},
|
|
})
|
|
vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal left<CR>")
|
|
end,
|
|
}
|