From feb7a18c4bfb416d38af519ab44167b50dae4af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 9 Jun 2020 15:39:37 +0800 Subject: =?UTF-8?q?#175=20=E5=8F=AF=E4=BB=A5=E5=85=B3=E9=97=AD=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/method/textDocument/signatureHelp.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'script/method/textDocument') 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 -- cgit v1.2.3