Skip to content

Commit

Permalink
fix: auto_insert scheduling and module reference
Browse files Browse the repository at this point in the history
Saghen committed Nov 27, 2024

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
1 parent 180be7b commit 1b3cd31
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/blink/cmp/completion/list.lua
Original file line number Diff line number Diff line change
@@ -158,7 +158,7 @@ function list.apply_preview(item)
require('blink.cmp.lib.text_edits').apply({ list.preview_undo_text_edit })
end
-- apply the new preview
list.preview_undo_text_edit = require('blink.cmp.completion.preview')(item)
list.preview_undo_text_edit = require('blink.cmp.completion.accept.preview')(item)
end)
end

4 changes: 2 additions & 2 deletions lua/blink/cmp/init.lua
Original file line number Diff line number Diff line change
@@ -69,13 +69,13 @@ end

function cmp.select_prev()
if not require('blink.cmp.completion.windows.menu').win:is_open() then return end
require('blink.cmp.completion.list').select_prev()
vim.schedule(function() require('blink.cmp.completion.list').select_prev() end)
return true
end

function cmp.select_next()
if not require('blink.cmp.completion.windows.menu').win:is_open() then return end
require('blink.cmp.completion.list').select_next()
vim.schedule(function() require('blink.cmp.completion.list').select_next() end)
return true
end

0 comments on commit 1b3cd31

Please sign in to comment.