nvim: i don't even know man

This commit is contained in:
2023-10-06 13:35:21 +03:00
parent cf2d046bbd
commit e709f72e4a
8 changed files with 80 additions and 67 deletions

View File

@ -1,22 +0,0 @@
return {
"kyazdani42/nvim-tree.lua",
config = function()
-- 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",
})
end,
dependencies = {
"kyazdani42/nvim-web-devicons",
},
cmd = { "NvimTreeOpen", "NvimTreeToggle" },
}