2024-12-23 01:24:06 +01:00
|
|
|
{lib, ...}: let
|
2024-12-23 02:00:47 +01:00
|
|
|
inherit (lib.options) mkEnableOption mkOption;
|
|
|
|
inherit (lib.types) listOf;
|
|
|
|
inherit (lib.nvim.types) pluginType;
|
2024-12-23 01:24:06 +01:00
|
|
|
in {
|
|
|
|
options.vim.autocomplete = {
|
2024-12-23 02:00:47 +01:00
|
|
|
enableSharedCmpSources = mkEnableOption "cmp sources shared by nvim-cmp and blink.cmp";
|
|
|
|
|
2024-12-23 02:48:03 +01:00
|
|
|
sourcePlugins = mkOption {
|
2024-12-23 02:00:47 +01:00
|
|
|
type = listOf pluginType;
|
|
|
|
default = [];
|
|
|
|
description = "List of cmp source plugins.";
|
|
|
|
};
|
2024-12-23 01:24:06 +01:00
|
|
|
};
|
|
|
|
}
|