Skip to content

Commit

Permalink
fix: open local docs if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Rainer committed Aug 7, 2024
1 parent 91e6d45 commit 4aa0c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4aa0c2f

Please sign in to comment.