summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-08 19:10:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-08 19:10:54 +0800
commit5354d8c339ddb6487f3c0ec1b240eb3e93d19585 (patch)
tree88cf58b3f0754b3bd8d04a343df2aecb24744cff /script/core
parent210288995298fae946468523f5cbcf7e2ed69d68 (diff)
downloadlua-language-server-5354d8c339ddb6487f3c0ec1b240eb3e93d19585.zip
viewNumber 的实现
Diffstat (limited to 'script/core')
-rw-r--r--script/core/hover/hover.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/hover/hover.lua b/script/core/hover/hover.lua
index 8bc6f506..4270f418 100644
--- a/script/core/hover/hover.lua
+++ b/script/core/hover/hover.lua
@@ -358,6 +358,9 @@ local function formatNumber(n)
end
local function hoverAsNumber(source)
+ if not config.config.hover.viewNumber then
+ return nil
+ end
local num = source[1]
if type(num) ~= 'number' then
return nil