Why is there no Neovim in pkl.settings.editor? #22

Closed
opened 2025-12-30 01:19:37 +01:00 by adam · 3 comments
Owner

Originally created by @uhooi on GitHub (Feb 4, 2024).

Why is there no Neovim in Editor in pkl.settings ?
There is a plugin for Neovim that could be added.

ref: https://pkl-lang.org/package-docs/pkl/0.25.1/settings/

Originally created by @uhooi on GitHub (Feb 4, 2024). Why is there no Neovim in `Editor` in `pkl.settings` ? There is a [plugin for Neovim](https://github.com/apple/pkl-neovim) that could be added. ref: https://pkl-lang.org/package-docs/pkl/0.25.1/settings/
adam closed this issue 2025-12-30 01:19:37 +01:00
Author
Owner

@holzensp commented on GitHub (Feb 5, 2024):

Right now, the Editors are only used to format the URIs of the file references in error messages (producing idea://path/to/file.pkl when you use Idea, for example. Are there setups where having a clickable link in the terminal to open neovim makes sense? I always use neovim in terminal only and then there's no clicking involved.

If there is, and there is a canonical URI form; happy to take a PR or to follow up at some later stage.

@holzensp commented on GitHub (Feb 5, 2024): Right now, the `Editor`s are only used to format the URIs of the file references in error messages (producing `idea://path/to/file.pkl` when you use `Idea`, for example. Are there setups where having a clickable link in the terminal to open neovim makes sense? I always use neovim in terminal only and then there's no clicking involved. If there is, and there is a canonical URI form; happy to take a PR or to follow up at some later stage.
Author
Owner

@uhooi commented on GitHub (Feb 5, 2024):

I see...I understand.
Thank you!

@uhooi commented on GitHub (Feb 5, 2024): I see...I understand. Thank you!
Author
Owner

@gibfahn commented on GitHub (Apr 23, 2024):

I did the following. I don't need the clickable links, but it means that when I run pkl eval in a Neovim terminal, I can use gF to jump to the file at the correct line.

amends "pkl:settings"

// Custom URL scheme to make gF work in Neovim.
editor = (Editor) {
  urlScheme = "%{path}:%{line}:%{column}"
}
@gibfahn commented on GitHub (Apr 23, 2024): I did the following. I don't need the clickable links, but it means that when I run pkl eval in a Neovim terminal, I can use [gF](https://neovim.io/doc/user/editing.html#gF) to jump to the file at the correct line. ```pkl amends "pkl:settings" // Custom URL scheme to make gF work in Neovim. editor = (Editor) { urlScheme = "%{path}:%{line}:%{column}" } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#22