74 lines
1.5 KiB
Lua
74 lines
1.5 KiB
Lua
-- File: ~/.config/nvim/lua/plugins/nvim-tree.lua
|
|
|
|
-- Keybinding to toggle Nvim Tree
|
|
vim.api.nvim_set_keymap('n', '<leader>e', ':NvimTreeToggle<CR>', { noremap = true, silent = true })
|
|
|
|
-- Nvim Tree Configuration
|
|
require("nvim-tree").setup({
|
|
view = {
|
|
width = 35,
|
|
side = "left",
|
|
adaptive_size = true,
|
|
mappings = {
|
|
list = {
|
|
{ key = "l", action = "edit" },
|
|
{ key = "h", action = "close_node" },
|
|
{ key = "v", action = "vsplit" },
|
|
{ key = "a", action = "create" },
|
|
{ key = "d", action = "remove" },
|
|
{ key = "r", action = "rename" },
|
|
},
|
|
},
|
|
},
|
|
renderer = {
|
|
highlight_git = true,
|
|
highlight_opened_files = "all",
|
|
icons = {
|
|
glyphs = {
|
|
default = "",
|
|
symlink = "",
|
|
folder = {
|
|
arrow_closed = "",
|
|
arrow_open = "",
|
|
default = "",
|
|
open = "",
|
|
},
|
|
git = {
|
|
unstaged = "✗",
|
|
staged = "✓",
|
|
unmerged = "",
|
|
renamed = "➜",
|
|
untracked = "★",
|
|
deleted = "",
|
|
ignored = "◌",
|
|
},
|
|
},
|
|
},
|
|
indent_markers = {
|
|
enable = true,
|
|
},
|
|
},
|
|
diagnostics = {
|
|
enable = true,
|
|
show_on_dirs = true,
|
|
icons = {
|
|
hint = "",
|
|
info = "",
|
|
warning = "",
|
|
error = "",
|
|
},
|
|
},
|
|
filters = {
|
|
dotfiles = false,
|
|
},
|
|
actions = {
|
|
open_file = {
|
|
quit_on_open = true,
|
|
},
|
|
},
|
|
git = {
|
|
enable = true,
|
|
ignore = false,
|
|
},
|
|
})
|