dotfiles/mzte-nv/conf/lua/pluginconf/nvimtree.lua

27 lines
552 B
Lua
Raw Normal View History

2022-11-13 21:10:33 +01:00
local map = vim.api.nvim_set_keymap
2021-11-05 17:44:11 +01:00
require("nvim-tree").setup {
2022-10-17 10:47:36 +02:00
open_on_setup = not vim.g.started_by_vinput,
2022-10-16 20:31:31 +02:00
open_on_setup_file = false,
2022-11-21 00:24:12 +01:00
actions = {
change_dir = {
global = true,
},
},
2022-11-18 22:44:37 +01:00
view = {
adaptive_size = true,
},
2021-11-05 17:44:11 +01:00
diagnostics = {
enable = true,
},
2022-01-05 19:45:05 +01:00
git = {
ignore = false,
},
2022-06-14 20:39:07 +02:00
renderer = {
indent_markers = { enable = true },
2022-11-18 22:44:37 +01:00
group_empty = true,
2022-06-14 20:39:07 +02:00
},
2021-11-05 17:44:11 +01:00
}
2022-11-13 21:10:33 +01:00
map("n", "TT", [[<cmd>NvimTreeToggle<CR>]], { noremap = true, silent = true })