Skip to content

Snippets! #2

@clason

Description

@clason

What?
What it says on the tin: a pure Lua snippet engine.

Why?
The major snippet plugins (UltiSnips, neosnippets) are remote python plugins, which adds a dependency. There's also https://github.com/hrsh7th/vim-vsnip in pure vimscript, though, but Lua should have significantly better performance and be more hackable. It should support the basic features: snippet management (either in its own format, UltiSnip/neosnippet format, or LSP); snippet expansion (including nested placeholders) and ideally transformation.

Potential existing implementations:
https://github.com/norcalli/snippets.nvim, which is useable but still lacks a few of the above features.

Potential pitfalls:
Ideally, the expansion should be based on extmarks, but that requires the PR https://github.com/neovim/neovim/pull/12249/files to be merged first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions