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/
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.
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}"
}
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @uhooi on GitHub (Feb 4, 2024).
Why is there no Neovim in
Editorinpkl.settings?There is a plugin for Neovim that could be added.
ref: https://pkl-lang.org/package-docs/pkl/0.25.1/settings/
@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 (producingidea://path/to/file.pklwhen you useIdea, 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.
@uhooi commented on GitHub (Feb 5, 2024):
I see...I understand.
Thank you!
@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.