We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a84023 commit 5cfff34Copy full SHA for 5cfff34
lua/blink/cmp/sources/luasnip.lua
@@ -118,7 +118,8 @@ function source:execute(ctx, item)
118
if snip.regTrig then snip = snip:get_pattern_expand_helper() end
119
120
-- get (0, 0) indexed cursor position
121
- local cursor = { ctx.cursor[1] - 1, ctx.cursor[2] }
+ local cursor = vim.api.nvim_win_get_cursor(0)
122
+ cursor[1] = cursor[1] - 1
123
124
local expand_params = snip:matches(require('luasnip.util.util').get_current_line_to_cursor())
125
0 commit comments