From 1001683bee3a52a7b7e07ba9d391472961739c7b Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Wed, 2 Mar 2022 12:13:01 +0900 Subject: [PATCH] Add doc --- doc/cmp.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/cmp.txt b/doc/cmp.txt index 518e0d8..0edf7c1 100644 --- a/doc/cmp.txt +++ b/doc/cmp.txt @@ -612,6 +612,20 @@ You can create custom source like the following example. ============================================================================== FAQ *cmp-faq* +Why does cmp automatically select a particular item? ~ +How to disable the preselect feature? ~ + + The nvim-cmp respects LSP(Language Server Protocol) specification. + The LSP spec defines the `preselect` feature for completion. + + You can disable the `preselect` feature like the following. +> + cmp.setup { + preselect = cmp.PreselectMode.None + } +< + + How to disable auto-completion?~ How to use nvim-cmp as like omnifunc?~