2022-02-28 05:11:19 +00:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
function M.config()
|
2023-01-10 18:21:09 +00:00
|
|
|
local status_ok, nvimtree = pcall(require, 'nvim-tree')
|
2022-02-28 05:11:19 +00:00
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2023-01-10 18:21:09 +00:00
|
|
|
nvimtree.setup({
|
2022-02-28 05:11:19 +00:00
|
|
|
filters = {
|
|
|
|
dotfiles = false,
|
|
|
|
custom = {
|
2023-01-10 18:21:09 +00:00
|
|
|
'^\\.git$',
|
|
|
|
'^\\.mypy_cache$',
|
|
|
|
'^\\.test_cache$',
|
|
|
|
'^\\.coverage$',
|
|
|
|
'^node_modules$',
|
2022-02-28 05:11:19 +00:00
|
|
|
},
|
|
|
|
},
|
2022-05-01 19:38:22 +00:00
|
|
|
view = {
|
2022-09-22 18:31:50 +00:00
|
|
|
width = 40,
|
2023-01-10 18:21:09 +00:00
|
|
|
side = 'left',
|
2022-05-01 19:38:22 +00:00
|
|
|
number = false,
|
|
|
|
relativenumber = false,
|
2023-01-10 18:21:09 +00:00
|
|
|
signcolumn = 'yes',
|
2022-05-01 19:38:22 +00:00
|
|
|
},
|
2022-05-01 17:43:11 +00:00
|
|
|
renderer = {
|
2023-04-17 21:11:25 +00:00
|
|
|
root_folder_label = false,
|
2022-05-01 17:43:11 +00:00
|
|
|
indent_markers = {
|
2022-05-01 19:38:22 +00:00
|
|
|
enable = false,
|
2022-05-01 17:43:11 +00:00
|
|
|
icons = {
|
2023-01-10 18:21:09 +00:00
|
|
|
corner = '└ ',
|
|
|
|
edge = '│ ',
|
|
|
|
none = ' ',
|
|
|
|
},
|
2022-05-01 17:43:11 +00:00
|
|
|
},
|
|
|
|
icons = {
|
2022-07-07 06:34:15 +00:00
|
|
|
webdev_colors = true,
|
2023-01-10 18:21:09 +00:00
|
|
|
glyphs = {
|
|
|
|
folder = {
|
|
|
|
symlink_open = '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-05-01 17:43:11 +00:00
|
|
|
},
|
2022-02-28 05:11:19 +00:00
|
|
|
disable_netrw = true,
|
|
|
|
hijack_netrw = true,
|
2022-10-05 17:01:46 +00:00
|
|
|
open_on_tab = false,
|
2022-05-01 17:43:11 +00:00
|
|
|
actions = {
|
|
|
|
open_file = {
|
|
|
|
quit_on_open = false,
|
|
|
|
window_picker = {
|
2022-10-05 17:01:46 +00:00
|
|
|
enable = false,
|
2023-01-10 18:21:09 +00:00
|
|
|
},
|
|
|
|
},
|
2022-05-01 17:43:11 +00:00
|
|
|
},
|
2022-02-28 05:11:19 +00:00
|
|
|
hijack_cursor = true,
|
|
|
|
update_focused_file = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
diagnostics = {
|
|
|
|
enable = false,
|
|
|
|
icons = {
|
2023-01-10 18:21:09 +00:00
|
|
|
hint = '',
|
|
|
|
info = '',
|
|
|
|
warning = '',
|
|
|
|
error = '',
|
2022-02-28 05:11:19 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
git = {
|
|
|
|
enable = true,
|
|
|
|
ignore = false,
|
|
|
|
timeout = 500,
|
|
|
|
},
|
2023-01-10 18:21:09 +00:00
|
|
|
})
|
2022-02-28 05:11:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|