2024-05-13 18:43:31 +00:00
|
|
|
return {
|
2024-06-02 17:11:54 +00:00
|
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
|
|
branch = "v3.x",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
"nvim-tree/nvim-web-devicons",
|
|
|
|
"MunifTanjim/nui.nvim",
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
-- Setup --
|
|
|
|
require("neo-tree").setup({
|
|
|
|
close_if_last_window = false,
|
|
|
|
enable_git_status = true,
|
|
|
|
enable_diagnostics = true,
|
|
|
|
name = {
|
|
|
|
trailing_slash = false,
|
|
|
|
use_git_status_colors = true,
|
|
|
|
highlight = "NeoTreeFileName",
|
|
|
|
},
|
|
|
|
git_status = {
|
|
|
|
symbols = {
|
|
|
|
-- Git Change type Icon --
|
|
|
|
added = "✚",
|
|
|
|
modified = "",
|
|
|
|
deleted = "✖",
|
|
|
|
renamed = "",
|
|
|
|
-- Git Status type Icon --
|
|
|
|
untracked = "",
|
|
|
|
ignored = "",
|
|
|
|
unstaged = "",
|
|
|
|
staged = "",
|
|
|
|
conflict = "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
symlink_target = {
|
|
|
|
enabled = false,
|
|
|
|
},
|
|
|
|
filesystem = {
|
|
|
|
hijack_netrw_behavior = "open_default",
|
|
|
|
},
|
|
|
|
-- Keybinding --
|
|
|
|
window = {
|
|
|
|
mappings = {
|
|
|
|
["<space>"] = "open",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2024-05-13 18:43:31 +00:00
|
|
|
|
2024-06-02 17:11:54 +00:00
|
|
|
-- Dignostic Icons --
|
|
|
|
vim.fn.sign_define("DiagnosticSignError", {
|
|
|
|
text = " ",
|
|
|
|
texthl = "DiagnosticSignError",
|
|
|
|
})
|
|
|
|
vim.fn.sign_define("DiagnosticSignWarn", {
|
|
|
|
text = " ",
|
|
|
|
texthl = "DiagnosticSignWarn",
|
|
|
|
})
|
|
|
|
vim.fn.sign_define("DiagnosticSignInfo", {
|
|
|
|
text = " ",
|
|
|
|
texthl = "DiagnosticSignInfo",
|
|
|
|
})
|
|
|
|
vim.fn.sign_define("DiagnosticSignHint", {
|
|
|
|
text = "",
|
|
|
|
texthl = "DiagnosticSignHint",
|
|
|
|
})
|
2024-05-13 18:43:31 +00:00
|
|
|
|
2024-06-02 17:11:54 +00:00
|
|
|
-- Keybinding --
|
|
|
|
vim.keymap.set("n", "<leader>ft", ":Neotree toggle reveal left<CR>", { desc = "Toggle File Tree" })
|
|
|
|
vim.keymap.set("n", "<leader>fo", ":Neotree buffers reveal float<CR>", { desc = "Show Open Files" })
|
|
|
|
end,
|
2024-05-13 18:43:31 +00:00
|
|
|
}
|