feature: nvim: Autoload of last session if started without arguments

This commit is contained in:
Ivan Golikov 2026-09-12 00:56:04 +02:00
parent 124d6e29be
commit fb3e9a4798

View file

@ -36,3 +36,12 @@ require'nvim-treesitter.configs'.setup {
},
}
vim.opt.runtimepath:append(vim.fn.stdpath "data" .. "site")
-- Load last session when started without arguments
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
if vim.fn.argc() == 0 then
require("persistence").load()
end
end,
})