feature: nvim: Autoload of last session if started without arguments
This commit is contained in:
parent
124d6e29be
commit
fb3e9a4798
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue