You can run the following command to test the configuration:
nix run github:LilleAila/nvf-config
My LuaSnip snippets are also available from this flake. To use them in your nvf config, set the following options.
{ pkgs, inputs, ... }:
{
vim.snippets.luasnip = {
enable = true;
setupOpts = {
enable_autosnippets = true;
};
providers = [
inputs.lilleaila-nvf.packages.${pkgs.system}.snippets
];
loaders = # lua
''
require("lilleaila-snippets").load_snippets()
'';
};
}
This package contains the following types of snippets:
- LaTeX math
- LaTeX math in markdown
The only dependency is nvim-treesitter, with the grammars of the supported languages installed.
Note that the snippets do not require nvf or nix, and can be used as long as the provided package (or config/snippets
) are in neovim's path.