Skip to content
Snippets Groups Projects
Commit 59504ebe authored by codecraft's avatar codecraft :crocodile:
Browse files

Removing closing when starting a folder

parent 70dd4e31
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ function M.setup()
dashboard.button("r", codevim.icons.ui.History .. " Recent files", "<CMD>Telescope oldfiles <CR>"),
dashboard.button("t", codevim.icons.ui.FindText .. " Find Text", "<CMD>Telescope live_grep<CR>"),
dashboard.button("c", codevim.icons.ui.Gear .. " Configuration", "<CMD>cd ~/.config/nvim/<CR><CMD>e init.lua<CR>"),
dashboard.button("q", codevim.icons.ui.Close .. " Quit", "<CMD>quit<CR>"),
dashboard.button("q", codevim.icons.ui.Close .. " Quit", "<CMD>qall<CR>"),
}
local function footer()
......
......@@ -102,15 +102,6 @@ require("nvim-tree").setup({
ignore = false,
}
})
vim.api.nvim_create_autocmd("BufEnter", {
nested = true,
callback = function()
if #vim.api.nvim_list_wins() == 1 and require("nvim-tree.utils").is_nvim_tree_buf() then
vim.cmd "quit"
end
end
})
-- Create an autocmd to keep the nvim-tree buffer open after saving changes
vim.cmd("autocmd VimEnter * NvimTreeOpen")
vim.cmd("autocmd VimEnter * wincmd p")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment