I'd like to use cmp-buffer as a completion source for nvim-cmp, but only when I explicitly request completion via <C-n>/<C-p>.
I've hacked this together locally:
- I created a new
nvim-cmp source that wraps cmp-buffer. The only difference is that my complete method doesn't do anything if params.context:get_reason() == types.cmp.ContextReason.Manual.
- I added
<C-n>/<C-p> mappings to invoke require("cmp").complete.