mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
- Spell check autocommand moved to filetype-based-keymaps.lua - Remove quickfix traversal keybindings - Lualine organized better: Git, debug on left; key, file type, location on right
15 lines
444 B
Lua
15 lines
444 B
Lua
-- Auto reload existing session
|
|
if not vim.g.vscode then
|
|
vim.api.nvim_create_autocmd("VimEnter", {
|
|
group = vim.api.nvim_create_augroup("restore_session", { clear = true }),
|
|
callback = function()
|
|
-- If nvim started with arguments, do NOT restore
|
|
if vim.fn.argc() ~= 0 then
|
|
return
|
|
end
|
|
require("persistence").load()
|
|
end,
|
|
nested = true,
|
|
})
|
|
end
|