Closed voyeg3r closed 5 months ago
Should this be a pull request instead? I don't understand what you're asking here.
There's a plugin that does this: https://github.com/mrcjkb/nvim-lastplace All you need to do is add it to the list of plugins:
{ 'mrcjkb/nvim-lastplace' },
I briefly tested it and it seems to work.
I feel like the snippet is too complicated, wouldn't this do the job?
vim.api.nvim_create_autocmd('BufRead', {
pattern = '*',
command = 'normal g\'"',
})
Given the existence of a plugin as @dam9000 cited, I'm closing this. Thanks for your contribution!
There's a plugin that does this: https://github.com/mrcjkb/nvim-lastplace All you need to do is add it to the list of plugins:
{ 'mrcjkb/nvim-lastplace' },
I briefly tested it and it seems to work.
It seems to break the goto definition flow. Or <leader>sg
.
I have been using https://github.com/rmagatti/auto-session so far to also restore the open buffers. But both plugins break all goto line number workflows for me. (search word, goto function definition).
Sadly this one also seems to overwrite the line I want to goto when I go to the definition of a function.
vim.api.nvim_create_autocmd('BufRead', {
pattern = '*',
command = 'normal g\'"',
})
Can we reopen the issue @feoh or should I create a new one?
please don't do either. If you're having issues with a third-party plug-in, please file an issue against that plug-ins repository and not here. Kickstart cannot be all things to all people.
please don't do either. If you're having issues with a third-party plug-in, please file an issue against that plug-ins repository and not here. Kickstart cannot be all things to all people.
Yes that makes sense. But restoring cursor position is a common thing isn't it? Imo that should be a solved problem by kickstart. And as of right now the cursor restore options do not seem to work with kickstart.