Want neovim to return the cursor to the position it was when you last closed the file?
Put the following into the lua config and thank me later:
vim.api.nvim_create_autocmd({'BufWinEnter'}, {
command = 'silent! normal! g`"zv',
})

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.bsd.cafe/users/vkarlsen/statuses/114711749282457093 on your instance and quote it. (Note that quoting is not supported in Mastodon.)