From 7457ff8ff5109d463200a9a36766fb4e2b52d105 Mon Sep 17 00:00:00 2001 From: "shane.xb.qian" Date: Sat, 2 Dec 2023 12:08:02 +0800 Subject: [PATCH] none: get trig chars always Signed-off-by: shane.xb.qian --- autoload/lsp/lspserver.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/lsp/lspserver.vim b/autoload/lsp/lspserver.vim index 53cc8952..25eee868 100644 --- a/autoload/lsp/lspserver.vim +++ b/autoload/lsp/lspserver.vim @@ -114,10 +114,8 @@ def ServerInitReply(lspserver: dict, initResult: dict): void capabilities.ProcessServerCaps(lspserver, caps) if caps->has_key('completionProvider') - if opt.lspOptions.autoComplete || opt.lspOptions.omniComplete - lspserver.completionTriggerChars = + lspserver.completionTriggerChars = caps.completionProvider->get('triggerCharacters', []) - endif lspserver.completionLazyDoc = caps.completionProvider->get('resolveProvider', false) endif