LSP/TextMate snippet implementation based on Neovim's extmarks. Aiming to replace the need for UltiSnips and eventually upstreaming into neovim.
A continuation of norcalli/nvim-snippets.lua.
UltiSnips, vsnip and other implementations are larger because they need to calculate diffs and guess what exactly changed when the user edits snippet placeholders. With Neovim's extmarks, that problem is solved for us: we simply mark the start and end of each placeholder and the positioning will remain correct.
Warning! This plugin is in development, expect things to be completely broken.
You need to compile neovim from source with nvim_buf_set_text patches.
Install the plugin as usual, then add this to your config:
if vim.env.SNIPPETS then vim.snippet = require 'snippet' end
Start neovim with the SNIPPETS env variable set:
For development, you can just clone the repository, then add the directory to your runtime path:
SNIPPETS=1 nvim -c "set rtp=."