occivink / kakoune-snippets

Snippet support for kakoune
The Unlicense
48 stars 6 forks source link

LSP completion snippets #22

Closed vbauerster closed 1 year ago

vbauerster commented 5 years ago

I use bingo lsp server with kak-lsp. Completion has some snippet like placeholder. I installed this plugin with hope, that I'll be able to jump to that placeholders, but nothing happens out of the box. Screenshot-2019-02-15-at-16-22-02.png

Is it possible to jump to placeholders in such completion snippets? If yes how do I config?

occivink commented 5 years ago

You're right that it is currently unsupported, at the moment a kakoune completion is just a bunch of text that gets inserted before the cursor so it would be difficult to implement this. However, there is a kakoune issue (and a branch) about making completions more flexible (https://github.com/mawww/kakoune/issues/2347) so it might already be possible there. I'm not very familiar with how completions work in kakoune so I'd have to investigate that.

occivink commented 1 year ago

Snippets are now supported directly in kak-lsp