79 lines
1.2 KiB
Lua
79 lines
1.2 KiB
Lua
local M = {}
|
|
|
|
function M.config()
|
|
local status_ok, nvimtree = pcall(require, 'nvim-tree')
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
nvimtree.setup({
|
|
filters = {
|
|
dotfiles = false,
|
|
custom = {
|
|
'^\\.git$',
|
|
'^\\.mypy_cache$',
|
|
'^\\.test_cache$',
|
|
'^\\.coverage$',
|
|
'^node_modules$',
|
|
},
|
|
},
|
|
view = {
|
|
width = 40,
|
|
side = 'left',
|
|
number = false,
|
|
relativenumber = false,
|
|
signcolumn = 'yes',
|
|
},
|
|
renderer = {
|
|
root_folder_label = false,
|
|
indent_markers = {
|
|
enable = false,
|
|
icons = {
|
|
corner = '└ ',
|
|
edge = '│ ',
|
|
none = ' ',
|
|
},
|
|
},
|
|
icons = {
|
|
webdev_colors = true,
|
|
glyphs = {
|
|
folder = {
|
|
symlink_open = '',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
disable_netrw = true,
|
|
hijack_netrw = true,
|
|
open_on_tab = false,
|
|
actions = {
|
|
open_file = {
|
|
quit_on_open = false,
|
|
window_picker = {
|
|
enable = false,
|
|
},
|
|
},
|
|
},
|
|
hijack_cursor = true,
|
|
update_focused_file = {
|
|
enable = true,
|
|
},
|
|
diagnostics = {
|
|
enable = false,
|
|
icons = {
|
|
hint = '',
|
|
info = '',
|
|
warning = '',
|
|
error = '',
|
|
},
|
|
},
|
|
git = {
|
|
enable = true,
|
|
ignore = false,
|
|
timeout = 500,
|
|
},
|
|
})
|
|
end
|
|
|
|
return M
|