2022-02-28 05:11:19 +00:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
function M.config()
|
|
|
|
local status_ok, nvimtree = pcall(require, "nvim-tree")
|
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local g = vim.g
|
|
|
|
|
|
|
|
g.nvim_tree_icons = {
|
|
|
|
default = "",
|
|
|
|
symlink = "",
|
|
|
|
git = {
|
|
|
|
deleted = "",
|
|
|
|
ignored = "◌",
|
|
|
|
renamed = "➜",
|
|
|
|
staged = "✓",
|
|
|
|
unmerged = "",
|
|
|
|
unstaged = "✗",
|
|
|
|
untracked = "★",
|
|
|
|
},
|
|
|
|
folder = {
|
|
|
|
default = "",
|
|
|
|
empty = "",
|
|
|
|
empty_open = "",
|
|
|
|
open = "",
|
|
|
|
symlink = "",
|
|
|
|
symlink_open = "",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
nvimtree.setup {
|
|
|
|
filters = {
|
|
|
|
dotfiles = false,
|
|
|
|
custom = {
|
|
|
|
".git",
|
|
|
|
"node_modules",
|
|
|
|
".cache",
|
|
|
|
},
|
|
|
|
},
|
2022-05-01 17:43:11 +00:00
|
|
|
renderer = {
|
|
|
|
indent_markers = {
|
|
|
|
enable = true,
|
|
|
|
icons = {
|
|
|
|
corner = "└ ",
|
|
|
|
edge = "│ ",
|
|
|
|
none = " ",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
icons = {
|
|
|
|
webdev_colors = true
|
|
|
|
}
|
|
|
|
},
|
2022-02-28 05:11:19 +00:00
|
|
|
disable_netrw = true,
|
|
|
|
hijack_netrw = true,
|
|
|
|
ignore_ft_on_setup = {
|
|
|
|
"dashboard",
|
|
|
|
"startify",
|
|
|
|
"alpha",
|
|
|
|
},
|
|
|
|
open_on_tab = false,
|
2022-05-01 17:43:11 +00:00
|
|
|
actions = {
|
|
|
|
open_file = {
|
|
|
|
quit_on_open = false,
|
|
|
|
window_picker = {
|
|
|
|
enable = true,
|
|
|
|
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-02-28 05:11:19 +00:00
|
|
|
hijack_cursor = true,
|
|
|
|
update_cwd = true,
|
|
|
|
update_focused_file = {
|
|
|
|
enable = true,
|
|
|
|
update_cwd = true,
|
|
|
|
ignore_list = {},
|
|
|
|
},
|
|
|
|
diagnostics = {
|
|
|
|
enable = false,
|
|
|
|
icons = {
|
|
|
|
hint = "",
|
|
|
|
info = "",
|
|
|
|
warning = "",
|
|
|
|
error = "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view = {
|
|
|
|
width = 25,
|
|
|
|
height = 30,
|
|
|
|
side = "left",
|
|
|
|
hide_root_folder = false,
|
|
|
|
number = false,
|
|
|
|
relativenumber = false,
|
|
|
|
signcolumn = "yes",
|
|
|
|
},
|
|
|
|
git = {
|
|
|
|
enable = true,
|
|
|
|
ignore = false,
|
|
|
|
timeout = 500,
|
|
|
|
},
|
2022-05-01 17:43:11 +00:00
|
|
|
-- show_icons = {
|
|
|
|
-- git = 1,
|
|
|
|
-- folders = 1,
|
|
|
|
-- files = 1,
|
|
|
|
-- folder_arrows = 0,
|
|
|
|
-- tree_width = 30,
|
|
|
|
-- },
|
2022-02-28 05:11:19 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|
|
|
|
|