Get The Currnet Neovim Cursor Position With Lua
local position = vim.fn.getcurpos()
local line = position[2]
local column = position[3]
print(line)
print(column)
TODO: Show Results Output
~ fin ~
References
-
Get the position of the cursor in Neovim