summaryrefslogtreecommitdiff
path: root/script-beta/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-11 19:47:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-11 19:47:09 +0800
commitcf646670972e75d38fbbd7f18e9ccf47de73f3fc (patch)
treeed7a65c8391fbf799bb79300e41b69c332c9ad0e /script-beta/core
parent644b1a4e9f256f78bef75d288cba7a02c75ddfb7 (diff)
downloadlua-language-server-cf646670972e75d38fbbd7f18e9ccf47de73f3fc.zip
修改 hover enum 的格式
Diffstat (limited to 'script-beta/core')
-rw-r--r--script-beta/core/hover/description.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/core/hover/description.lua b/script-beta/core/hover/description.lua
index 31d5bf58..3f39d959 100644
--- a/script-beta/core/hover/description.lua
+++ b/script-beta/core/hover/description.lua
@@ -207,8 +207,8 @@ local function buildEnumChunk(docType, name)
local lines = {}
lines[#lines+1] = ('%s: %s'):format(name, table.concat(types))
for _, enum in ipairs(enums) do
- lines[#lines+1] = (' |%s%s%s'):format(
- enum.default and '>' or ' ',
+ lines[#lines+1] = (' %s %s%s'):format(
+ enum.default and '->' or ' |',
enum[1],
enum.comment and (' -- %s'):format(enum.comment) or ''
)