aboutsummaryrefslogblamecommitdiff
path: root/.config/nvim/lua/plugins/nvim-tree.lua
blob: af2f4a67464f71cd3592b1d740bdf380b4b3bac2 (plain) (tree)






















                                                                               
return {
	"nvim-tree/nvim-tree.lua",
	lazy = false,
  dependencies = {
    "nvim-tree/nvim-web-devicons",
  },
	config = function() 
    local autocmd = vim.api.nvim_create_autocmd   -- Create autocommand

    -- Close nvim-tree if last window remaining
    autocmd('BufEnter', {
      pattern = '*',
      command = 'if (winnr("$") ==1 && &filetype == "nvimtree") | q | endif'
    })
		vim.cmd([[hi NvimTreeNormal guibg=NONE ctermbg=None]])
		-- vim.keymap.set("n", "<leader>nt", ":NvimTreeToggle<CR>", {})
    require("nvim-tree").setup({
			filters = {
				dotfiles = false,
			},
		})
	end,
}