Skip to content

Commit

Permalink
Fix go to definition in NeoVim (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gert-JanPeeters authored Oct 25, 2023
1 parent 86bd86b commit 305a39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Definitions {
}

const controllers = this.controllers.filter((controller) => identifiers.includes(controller.identifier))
const locations = controllers.map((controller) => Location.create(controller.path, Range.create(0, 0, 0, 0)))
const locations = controllers.map((controller) => Location.create(`file://${controller.path}`, Range.create(0, 0, 0, 0)))

if (controllers.length === 1) return locations[0]

Expand Down

0 comments on commit 305a39a

Please sign in to comment.