nvim-config/after/plugin/nvim-tree.lua

32 lines
639 B
Lua
Raw Normal View History

2023-02-09 21:22:26 -08:00
local installed, nvim_tree = pcall(require, "nvim-tree")
if installed then
2023-02-09 21:22:26 -08:00
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
nvim_tree.setup({
sort_by = "case_sensitive",
disable_netrw = true,
view = {
adaptive_size = true,
mappings = {
list = {
{ key = "u", action = "dir_up" },
},
},
},
renderer = {
highlight_git = true,
group_empty = true,
},
filters = {
dotfiles = false,
},
})
2023-02-09 21:22:26 -08:00
vim.api.nvim_set_keymap(
"n",
"<leader>m",
[[<cmd>lua require('nvim-tree').toggle()<cr>]],
{ noremap = true, silent = true }
)
end