feat(cmp): add on_config_done callback (#3589)

This commit is contained in:
Mathieu Cartaud 2022-12-13 16:25:55 +01:00 committed by GitHub
parent 133024533a
commit f50e49a3cc
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,7 @@ M.config = function()
lvim.builtin.cmp = {
active = true,
on_config_done = nil,
enabled = function()
local buftype = vim.api.nvim_buf_get_option(0, "buftype")
if buftype == "prompt" then
@ -367,6 +368,10 @@ function M.setup()
})
end
end
if lvim.builtin.cmp.on_config_done then
lvim.builtin.cmp.on_config_done(cmp)
end
end
return M