nixos/config/nvim/lua/config_plugins/config_nvim-tree.lua

48 lines
1 KiB
Lua

vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.opt.termguicolors = true
require('nvim-tree').setup {
disable_netrw = true,
open_on_setup = true,
open_on_setup_file = true,
hijack_cursor = true,
update_focused_file = {
enable = true,
update_root = true,
},
diagnostics = {
enable = true,
show_on_dirs = true,
show_on_open_dirs = false,
},
git = {
enable = true,
show_on_dirs = true,
show_on_open_dirs = false,
},
modified = {
enable = true,
show_on_dirs = true,
show_on_open_dirs = false,
},
view = {
centralize_selection = true,
},
renderer = {
add_trailing = true,
group_empty = true,
full_name = true,
highlight_git = true,
highlight_modified = "name",
indent_markers = {
enable = true,
},
icons = {
show = {
git = false,
modified = false,
},
},
},
}