How can I get the current cursor position in Lua? I want to get a number so that I can use it in a for-loop.
I tried this, but I got a hashed value instead:
local lineNum = vim.api.nvim_win_get_cursor(0) print(lineNum)
The value I got:
How can I get the value I need?