1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 02:07:58 +08:00

fix(flygrep): setup cmp only when exists

This commit is contained in:
Eric Wong 2025-02-02 22:41:09 +08:00
parent 83fda33de4
commit 9825e36c77
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -281,11 +281,13 @@ local function open_win()
{ win = result_winid }
)
vim.api.nvim_set_option_value('cursorline', true, { win = result_winid })
if ok then
cmp.setup.buffer({
completion = {
autocomplete = false,
},
})
end
vim.cmd('noautocmd startinsert')
local augroup = vim.api.nvim_create_augroup('floatgrep', {