Working NeoVim-Configuration, this should be the base for further

enhancements
This commit is contained in:
Thomas Naderer
2024-12-18 16:45:53 +01:00
commit e870d7408b
5 changed files with 322 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
-- 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,
},
})