open neo-tree on init

This commit is contained in:
Lorran David 2025-01-19 16:54:51 -03:00
parent 6f6e551b8e
commit cf3876785a
1 changed files with 9 additions and 7 deletions

View File

@ -1,8 +1,10 @@
-- Autocmd to open Neo-tree automatically on startup -- Autocmd to open Neo-tree automatically on startup
-- vim.api.nvim_create_autocmd("VimEnter", { vim.api.nvim_create_autocmd("VimEnter", {
-- callback = function() callback = function()
-- if vim.fn.isdirectory(vim.fn.getcwd()) == 1 then if vim.fn.isdirectory(vim.fn.getcwd()) == 1 then
-- require('neo-tree.command').execute({ toggle = false, dir = vim.loop.cwd() }) require('neo-tree.command').execute({ toggle = false, dir = vim.loop.cwd() })
-- end vim.cmd('wincmd p') -- Switch back to the previous buffer
-- end end
-- }) end
})