How to add the current cursor position to the jump list

How can I add the current cursor position to the jump list? Is there one recommended way?

1 Like

This worked for now:

vim.cmd [[ normal! m' ]] -- add current cursor location to jump list

Let me know if there is another more recommended way.

1 Like