Files
dots/.config/nvim/lua/plugins/nvim-tree.lua

14 lines
317 B
Lua

-- nvim tree
require("nvim-tree").setup({
update_cwd = true,
diagnostics = {
enable = true,
},
})
-- close tab/vim when nvim-tree is the last window in the tab
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*",
command = "if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif",
})