The Lua syntax when working with global variables in nvim differs from vimscript.
In Lua, the dot notation (.) is used to access nested tables, and the
underscore (_) is used instead of the hash symbol (#) for variable names.
In haya14busa/vim-asterisk, to enable keepCursor feature in vimscript:
let g:asterisk#keeppos = 1To enable keepCursor feature in lua:
vim.g.asterisk_keeppos = 1- Convert nvim global variables from
vimscripttolua