mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
feat(cmp): add on_config_done callback (#3589)
This commit is contained in:
parent
133024533a
commit
f50e49a3cc
1 changed files with 5 additions and 0 deletions
|
@ -129,6 +129,7 @@ M.config = function()
|
||||||
|
|
||||||
lvim.builtin.cmp = {
|
lvim.builtin.cmp = {
|
||||||
active = true,
|
active = true,
|
||||||
|
on_config_done = nil,
|
||||||
enabled = function()
|
enabled = function()
|
||||||
local buftype = vim.api.nvim_buf_get_option(0, "buftype")
|
local buftype = vim.api.nvim_buf_get_option(0, "buftype")
|
||||||
if buftype == "prompt" then
|
if buftype == "prompt" then
|
||||||
|
@ -367,6 +368,10 @@ function M.setup()
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if lvim.builtin.cmp.on_config_done then
|
||||||
|
lvim.builtin.cmp.on_config_done(cmp)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Reference in a new issue