diff --git a/README.md b/README.md index 8104c74..70105c8 100644 --- a/README.md +++ b/README.md @@ -392,6 +392,13 @@ Commands Show the source statuses +Autocmds +==================== + +#### `cmp#ready` + +Invoke after nvim-cmp setup. + Programatic API ==================== diff --git a/plugin/cmp.lua b/plugin/cmp.lua index 437dc7b..5a2b19c 100644 --- a/plugin/cmp.lua +++ b/plugin/cmp.lua @@ -30,3 +30,5 @@ end) vim.cmd [[command! CmpStatus lua require('cmp').status()]] +vim.cmd [[doautocmd User cmp#ready]] +