dotfiles-pub/common/nvim/after/plugin/tree.lua

38 lines
703 B
Lua
Raw Normal View History

2023-05-26 03:48:59 +00:00
require("nvim-tree").setup({
actions = {
open_file = {
quit_on_open = true,
},
},
renderer = {
indent_markers = {
enable = true,
},
icons = {
2023-06-13 04:24:08 +00:00
git_placement = "after",
2023-05-26 03:48:59 +00:00
symlink_arrow = " -> ",
show = {
file = false,
folder = false,
},
glyphs = {
folder = {
arrow_closed = "+",
arrow_open = "-",
},
git = {
unstaged = "U",
staged = "S",
unmerged = "M",
renamed = "R",
2023-06-13 04:24:08 +00:00
untracked = "A",
deleted = "D",
2023-05-26 03:48:59 +00:00
ignored = "I",
},
},
},
},
})
vim.keymap.set("n", "<leader>b", vim.cmd.NvimTreeToggle)