From 7df8934d6ce29c6cf67df2f6418e97b51b71da4c Mon Sep 17 00:00:00 2001 From: danymat Date: Sun, 23 Jan 2022 13:14:48 +0100 Subject: [PATCH] fix: Offset cursor by 0 --- lua/neogen/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neogen/init.lua b/lua/neogen/init.lua index 6681344..8a84d3e 100644 --- a/lua/neogen/init.lua +++ b/lua/neogen/init.lua @@ -124,7 +124,7 @@ neogen.generate = function(opts) -- Create extmark to jump back to current location local pos = vim.api.nvim_win_get_cursor(0) - neogen.utilities.cursor.create(pos[1], pos[2] + 2) + neogen.utilities.cursor.create(pos[1], pos[2] + 1) -- Creates extmark for the end of the content neogen.utilities.cursor.create(to_place + #content + 1, 0)