mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 01:57:58 +08:00
fix(flygrep): setup cmp only when exists
This commit is contained in:
parent
83fda33de4
commit
9825e36c77
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user