mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 17:05:59 +01:00
18 lines
327 B
Nix
18 lines
327 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib.modules) mkIf;
|
||
|
|
||
|
cfg = config.vim.snippets.luasnip;
|
||
|
in {
|
||
|
config = mkIf cfg.enable {
|
||
|
vim = {
|
||
|
startPlugins = ["luasnip" "cmp-luasnip"] ++ cfg.providers;
|
||
|
autocomplete.nvim-cmp.sources = {luasnip = "[LuaSnip]";};
|
||
|
pluginRC.luasnip = cfg.loaders;
|
||
|
};
|
||
|
};
|
||
|
}
|