summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-01 21:32:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-01 21:32:16 +0800
commit0b54714069e2981dea1e6325b8759a5da0d96222 (patch)
tree26c1b24971ade473f1c5bedff7452aa318e8fb40
parentc42de3c82435ff12d5091aad94034a67361b326f (diff)
downloadlua-language-server-0b54714069e2981dea1e6325b8759a5da0d96222.zip
resolve #583
-rw-r--r--script/provider/capability.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/provider/capability.lua b/script/provider/capability.lua
index faeb0690..d71fa09a 100644
--- a/script/provider/capability.lua
+++ b/script/provider/capability.lua
@@ -95,7 +95,8 @@ function m.getIniter()
--testFileEvents()
nonil.enable()
- if not client.info.capabilities.textDocument.completion.dynamicRegistration then
+ if not client.info.capabilities.textDocument.completion.dynamicRegistration
+ or not client.info.capabilities.workspace.configuration then
initer.completionProvider = {
resolveProvider = true,
triggerCharacters = completion.allWords(),