Files
dotfiles/common/.config/nvim/lua/config/autocmd.lua
Pratik Tripathy dc94f3b0a8 chore(nvim):
- 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
2024-12-30 23:23:17 +05:30

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