nvim-config/lua/configs/nvim-tree.lua

83 lines
1.3 KiB
Lua
Raw Normal View History

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 = {
2022-10-05 17:01:46 +00:00
"^\\.git$",
"^\\.mypy_cache$",
"^\\.test_cache$",
"^\\.coverage$",
"^node_modules$",
},
},
view = {
width = 40,
side = "left",
hide_root_folder = true,
number = false,
relativenumber = false,
signcolumn = "yes",
},
2022-05-01 17:43:11 +00:00
renderer = {
indent_markers = {
enable = false,
2022-05-01 17:43:11 +00:00
icons = {
corner = "",
edge = "",
none = " ",
}
},
icons = {
2022-07-07 06:34:15 +00:00
webdev_colors = true,
glyphs = {
folder = {
symlink_open = "",
},
},
2022-05-01 17:43:11 +00:00
}
},
disable_netrw = true,
hijack_netrw = true,
2022-10-05 17:01:46 +00:00
open_on_tab = false,
ignore_ft_on_setup = {
"alpha",
},
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,
2022-05-01 17:43:11 +00:00
}
}
},
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