diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-25 17:17:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-25 17:17:18 +0800 |
commit | 9e7944e17041f573729c57b2c3b5d711c63d6e32 (patch) | |
tree | 55bff8fb32325f66b5bf6f8b07d108ed982be6f5 /script/core | |
parent | 33580c1dd7c5ce0c9829e976cacd94418846eece (diff) | |
download | lua-language-server-9e7944e17041f573729c57b2c3b5d711c63d6e32.zip |
fix path
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hover/description.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua index 57ab0b23..0e4dd9a7 100644 --- a/script/core/hover/description.lua +++ b/script/core/hover/description.lua @@ -38,6 +38,7 @@ local function asStringInRequire(source, literal) elseif searcher then searcher = searcher:sub(#rootPath + 1) searcher = ws.normalize(searcher) + searcher = searcher:gsub('^[/\\]+', '') result[i] = ('* [%s](%s) %s'):format(path, uri, lang.script('HOVER_USE_LUA_PATH', searcher)) else result[i] = ('* [%s](%s)'):format(path, uri) |