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:
parent
83fda33de4
commit
9825e36c77
@ -281,11 +281,13 @@ local function open_win()
|
|||||||
{ win = result_winid }
|
{ win = result_winid }
|
||||||
)
|
)
|
||||||
vim.api.nvim_set_option_value('cursorline', true, { win = result_winid })
|
vim.api.nvim_set_option_value('cursorline', true, { win = result_winid })
|
||||||
cmp.setup.buffer({
|
if ok then
|
||||||
completion = {
|
cmp.setup.buffer({
|
||||||
autocomplete = false,
|
completion = {
|
||||||
},
|
autocomplete = false,
|
||||||
})
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
vim.cmd('noautocmd startinsert')
|
vim.cmd('noautocmd startinsert')
|
||||||
|
|
||||||
local augroup = vim.api.nvim_create_augroup('floatgrep', {
|
local augroup = vim.api.nvim_create_augroup('floatgrep', {
|
||||||
|
Loading…
Reference in New Issue
Block a user