Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

archseer/snippets.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snippets.nvim

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.

Why?

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.

Installation

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:

SNIPPETS=1 nvim

For development, you can just clone the repository, then add the directory to your runtime path:

SNIPPETS=1 nvim -c "set rtp=."

References

Acknowledgements

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published