Skip to content

Commit

Permalink
fix: dont move cursor after accepting
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Oct 28, 2024
1 parent 3927128 commit cab91c5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lua/blink/cmp/accept/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ local function accept(item)
else
table.insert(all_text_edits, item.textEdit)
text_edits_lib.apply_text_edits(item.client_id, all_text_edits)
vim.api.nvim_win_set_cursor(0, {
item.textEdit.range.start.line + 1,
item.textEdit.range.start.character + #item.textEdit.newText + offset,
})
end

-- Check semantic tokens for brackets, if needed, and apply additional text edits
Expand Down

0 comments on commit cab91c5

Please sign in to comment.