Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit a73b5a5

Browse files
committed
fix: don't reset completion when pumvisible(#114)
1 parent 2f57908 commit a73b5a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/source.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function M.autoCompletion(manager)
137137
local length = vim.g.completion_trigger_keyword_length
138138

139139
-- reset completion when deleting character in insert mode
140-
if #prefix < M.prefixLength then
140+
if #prefix < M.prefixLength and vim.fn.pumvisible() == 0 then
141141
M.chain_complete_index = 1
142142
-- api.nvim_input("<c-g><c-g>")
143143
if vim.g.completion_trigger_on_delete == 1 then

0 commit comments

Comments
 (0)