nix-community.nixvim/plugins/by-name/blink-cmp/default.nix
Heitor Augusto 0ebc64a232 plugins/blink-cmp: remove forced version override
The blink-cmp package now has a patch that fixes this.
2025-01-07 23:21:48 +00:00

48 lines
1.1 KiB
Nix

{
lib,
...
}:
lib.nixvim.plugins.mkNeovimPlugin {
name = "blink-cmp";
packPathName = "blink.cmp";
package = "blink-cmp";
maintainers = [ lib.maintainers.balssh ];
description = ''
Performant, batteries-included completion plugin for Neovim.
'';
settingsOptions = import ./settings-options.nix lib;
settingsExample = {
keymap.preset = "super-tab";
sources = {
providers = {
buffer.score_offset = -7;
lsp.fallbacks = [ ];
};
cmdline = [ ];
};
completion = {
accept = {
auto_brackets = {
enabled = true;
semantic_token_resolution.enabled = false;
};
};
documentation.auto_show = true;
};
appearance = {
use_nvim_cmp_as_default = true;
nerd_font_variant = "normal";
};
signature.enabled = true;
};
extraConfig = cfg: {
warnings = lib.optional (cfg.settings ? documentation) ''
Nixvim(plugins.blink): `settings.documentation` does not correspond to a known setting, use `settings.windows.documentation` instead.
'';
};
}