summaryrefslogtreecommitdiff
path: root/script/method/textDocument
diff options
context:
space:
mode:
Diffstat (limited to 'script/method/textDocument')
-rw-r--r--script/method/textDocument/signatureHelp.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/method/textDocument/signatureHelp.lua b/script/method/textDocument/signatureHelp.lua
index 3c6890d7..69cf6c8f 100644
--- a/script/method/textDocument/signatureHelp.lua
+++ b/script/method/textDocument/signatureHelp.lua
@@ -1,9 +1,13 @@
local core = require 'core'
+local config = require 'config'
--- @param lsp LSP
--- @param params table
--- @return table
return function (lsp, params)
+ if not config.config.signatureHelp.enable then
+ return
+ end
local uri = params.textDocument.uri
local vm, lines = lsp:loadVM(uri)
if not vm then