summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-30 14:37:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-30 14:37:38 +0800
commit820aa1a56a8a4bdd8fc7098b1e7cff5dd190b2eb (patch)
tree35e76427b3978a1b5ac654dcc1334eb8d32f3334 /script/provider/provider.lua
parent99b0517b6e6a278412dd053d27b08c0671ac1c49 (diff)
downloadlua-language-server-820aa1a56a8a4bdd8fc7098b1e7cff5dd190b2eb.zip
fix #884
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index df2a95f2..cf06090b 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -230,6 +230,9 @@ m.register 'textDocument/hover' {
abortByFileUpdate = true,
---@async
function (params)
+ if not config.get('Lua.hover.enable') then
+ return
+ end
local doc = params.textDocument
local uri = files.getRealUri(doc.uri)
if not workspace.isReady() then