Update utils.lua
Fix line number
This commit is contained in:
parent
602cae773b
commit
40fab7f97e
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ end
|
||||||
|
|
||||||
-- get the line number in the buffer
|
-- get the line number in the buffer
|
||||||
function M.get_line_number_from_buf()
|
function M.get_line_number_from_buf()
|
||||||
local lineNum = vim.api.nvim__buf_stats(0).current_lnum
|
local lineNum = vim.api.nvim_win_get_cursor(0)[1]
|
||||||
return lineNum
|
return lineNum
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue