mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 02:15:59 +01:00
luasnip: lazy load
This commit is contained in:
parent
46a1f0427f
commit
e829a0964a
1 changed files with 12 additions and 2 deletions
|
@ -9,9 +9,19 @@
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = ["luasnip" "cmp-luasnip"] ++ cfg.providers;
|
lazy.plugins = {
|
||||||
|
luasnip = {
|
||||||
|
package = "luasnip";
|
||||||
|
lazy = true;
|
||||||
|
after = cfg.loaders;
|
||||||
|
};
|
||||||
|
cmp-luasnip = mkIf config.vim.autocomplete.nvim-cmp.enable {
|
||||||
|
package = "cmp-luasnip";
|
||||||
|
lazy = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
startPlugins = cfg.providers;
|
||||||
autocomplete.nvim-cmp.sources = {luasnip = "[LuaSnip]";};
|
autocomplete.nvim-cmp.sources = {luasnip = "[LuaSnip]";};
|
||||||
pluginRC.luasnip = cfg.loaders;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue