Get The Currnet Neovim Cursor Position With Lua
lua
local position = vim.fn.getcurpos()
local line = position[2]
local column = position[3]
print(line)
print(column)
Footnotes And References
- •Neovim Docs: getcurpos()
Get the position of the cursor in Neovim