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

Commit 78a4534

Browse files
committed
fix: slightly fix on handling vim.fn.exists
1 parent 5dfa10f commit 78a4534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/completion.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function M.confirmCompletion()
6262
)
6363
vim.lsp.util.apply_text_edits(edits, bufnr)
6464
end
65-
if vim.fn.exists('g:loaded_vsnip_integ') then
65+
if vim.fn.exists('g:loaded_vsnip_integ') == 1 then
6666
api.nvim_call_function('vsnip_integ#on_complete_done_for_lsp',
6767
{ { completed_item = complete_item, completion_item = item } })
6868
end

0 commit comments

Comments
 (0)