Add missing files
This commit is contained in:
9
private_dot_config/nvim/lua/config/autocmd.lua
Normal file
9
private_dot_config/nvim/lua/config/autocmd.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
-- close nvim-tree if it's last buffer open
|
||||
vim.api.nvim_create_autocmd("BufEnter", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
if #vim.api.nvim_list_bufs() == 1 and vim.bo.filetype == "NvimTree" then
|
||||
vim.cmd("quit")
|
||||
end
|
||||
end,
|
||||
})
|
||||
Reference in New Issue
Block a user