diff options
author | Mathieu Cartaud <[email protected]> | 2022-12-13 16:25:55 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-13 16:25:55 +0100 |
commit | f50e49a3cc359cde4dc0132e682c0ae11b20da05 (patch) | |
tree | 019a82be543b10b95159713c071ef4ccb6c94e8a /lua | |
parent | 133024533a1ecd8a13fc03192c8cd4fd0153dfb3 (diff) |
feat(cmp): add on_config_done callback (#3589)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lvim/core/cmp.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/lvim/core/cmp.lua b/lua/lvim/core/cmp.lua index e39f8b98..cf92c984 100644 --- a/lua/lvim/core/cmp.lua +++ b/lua/lvim/core/cmp.lua @@ -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 |