neovim-flake/modules/plugins/completion/blink-cmp/config.nix

20 lines
331 B
Nix
Raw Normal View History

2024-12-23 01:24:06 +01:00
{
lib,
config,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.autocomplete.blink-nvim;
in {
vim = mkIf cfg.enable {
lazy.plugins = [
{
package = "blink-cmp";
setupModule = "blink";
inherit (cfg) setupOpts;
event = ["InsertEnter" "CmdlineEnter"];
}
];
};
}