luasnip: only add cmp source if cmp enabled

This commit is contained in:
Ching Pei Yang 2025-01-11 21:04:16 +01:00
parent 84d9ab5a6c
commit 9d64fb8716
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -17,7 +17,7 @@ in {
};
};
startPlugins = cfg.providers;
autocomplete.nvim-cmp = {
autocomplete.nvim-cmp = mkIf config.vim.autocomplete.nvim-cmp.enable {
sources = {luasnip = "[LuaSnip]";};
sourcePlugins = ["cmp-luasnip"];
};