From 777450fd0ae289463a14481673e26246b5e38bf2 Mon Sep 17 00:00:00 2001 From: hrsh7th <629908+hrsh7th@users.noreply.github.com> Date: Fri, 17 Mar 2023 13:22:04 +0900 Subject: [PATCH] Improve docs --- doc/cmp.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/cmp.txt b/doc/cmp.txt index e21921e..d2c095c 100644 --- a/doc/cmp.txt +++ b/doc/cmp.txt @@ -821,6 +821,17 @@ How to disable the preselect feature? ~ preselect = cmp.PreselectMode.None } < +How to disable only specific language-server's completion?~ + + You can disable `completionProvider` in lspconfig configuration. +>lua + lspconfig[%SERVER_NAME%].setup { + on_attach = function(client) + client.server_capabilities.completionProvider = false + end + } +< + How to disable commitCharacters?~