summaryrefslogtreecommitdiff
path: root/server/src/core/hover/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/hover/hover.lua')
-rw-r--r--server/src/core/hover/hover.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/hover/hover.lua b/server/src/core/hover/hover.lua
index ca1e03d4..2ee5cf46 100644
--- a/server/src/core/hover/hover.lua
+++ b/server/src/core/hover/hover.lua
@@ -298,6 +298,9 @@ local function hoverAsTargetUri(source, lsp)
return nil
end
local path = lsp.workspace:relativePathByUri(uri)
+ if not path then
+ return nil
+ end
return {
description = ('[%s](%s)'):format(path:string(), uri),
}