From ad80a094d6a8fc1a9c35af4972bf56d397dd5afe Mon Sep 17 00:00:00 2001 From: danielrainer <34983953+danielrainer@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:29:36 +0000 Subject: [PATCH] fix: open local docs if they exist (#1262) --- 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; }