We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 702ae4b commit 2758655Copy full SHA for 2758655
lua/ferris/methods/open_documentation.lua
@@ -20,7 +20,15 @@ local function open_documentation()
20
return
21
end
22
23
- local url = response.result["local"] or response.result.web or response.result
+ local url = response.result
24
+ if url["web"] then
25
+ local path = url["local"] and string.sub(url["local"], 7)
26
+ if path and vim.uv.fs_stat(path) then
27
+ url = url["local"]
28
+ else
29
+ url = url["web"]
30
+ end
31
32
33
if type(config.opts.url_handler) ~= "string" then
34
config.opts.url_handler(url)
0 commit comments