You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kickstart.nvim/after/plugin/neo-tree.lua

11 lines
339 B
Lua

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