From 7c97261b825d3a414249f3415989330c76c03a7d Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Thu, 23 Sep 2021 22:58:36 +0900 Subject: [PATCH] Add cmp#ready autocmd --- README.md | 7 +++++++ plugin/cmp.lua | 2 ++ 2 files changed, 9 insertions(+) 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]] +