

This small plugin for Neovim allows using vim.opt.completefunc
to serve, expand and browse snippets.
require("incomplete").setup()
After that, try opening your completefunc (CTRL-X CTRL-U
) and using it as usual (type to filter, CTRL-n
,CTRL-p
to
scroll, CTRL-y
to select). See help completefunc
.
Some completeopts may be useful. E.g.:
vim.opt.shortmess:append("c")
vim.opt.completeopt = { "menuone", "popup", "noinsert", "noselect", "fuzzy" }
For now, no plugin configuration is possible.
Only vscode-like json snippets are supported, they must be placed in a snippets/
folder at the root of your
runtimepath (e.g. at $XDG_CONFIG_HOME/nvim/snippets
) with a package.json
that contains metadata about all snippets.
Snippets for ft named all
will be always loaded. Snippets for other fts will be loaded lazily only for that filetype.
See Chris Grieser’s nvim-scissors for a quick guide.
friendly-snippets are supported.
Simply install them using your plugin manager, no need to call any lazy load etc. Incomplete.nvim will load snippets for a given filetype automatically when opening such buffer.
For reference usage, snippets etc. see my neovim config.

Leave a Reply