From 4aa0c2f44540b701f37afb5826b8d10587a8e2f7 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Wed, 7 Aug 2024 15:02:56 +0200 Subject: [PATCH] fix: open local docs if they exist --- src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.ts b/src/commands.ts index ea176fab..6e8b538b 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -700,7 +700,7 @@ export function openDocs(ctx: Ctx): Cmd { if (doclink) { if (doclink.local) { const exist = existsSync(Uri.parse(doclink.local).fsPath); - if (!exist) { + if (exist) { await nvim.call('coc#ui#open_url', doclink.local); return; }