apple / pkl-neovim

Pkl language support for Neovim
https://pkl-lang.org/neovim/current/index.html
Apache License 2.0
139 stars 13 forks source link

Write a plugin in vim9script to be compatible with the original Vim #11

Open jclsn opened 6 months ago

jclsn commented 6 months ago

This plugin exclusively written for Neovim, which can't be used in the original Vim. Many people still use it though. Would be great if there could also get one written in vim9script for Vim!

holzensp commented 6 months ago

That's a totally reasonable ask. It's going to be a while before we can prioritize this, though, so if you want it fast; PRs are most welcome ;) Ideally, though, we have one plugin that works in either, if that's doable.

jclsn commented 6 months ago

@holzensp Thank you for being open for this. It is doable, but currently it would have to be written in legacy vimscript. Although I am not sure if Neovim will add vim9script support in the future.

Ah seems there are plans

https://neovim.discourse.group/t/will-vim9-be-supported/2229/10

vim9script is also much nicer to program in, as it got rid of much of the quirks of legacy vimscript.

holzensp commented 6 months ago

In that case, I'd await the neovim support for vim9 before kicking this off.

jclsn commented 6 months ago

Upon further inquiry it seems they are not likely to support it any time soon.

https://github.com/neovim/neovim/issues/13625

You could still write the plugin in legacy vimscript though, to make it available for both editors.