mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-10 15:56:00 +01:00
27 lines
466 B
Nix
27 lines
466 B
Nix
|
{
|
||
|
pkgs,
|
||
|
lib,
|
||
|
config,
|
||
|
...
|
||
|
}:
|
||
|
with lib;
|
||
|
with builtins; let
|
||
|
cfg = config.vim.autocomplete;
|
||
|
in {
|
||
|
options.vim = {
|
||
|
autocomplete = {
|
||
|
enable = mkOption {
|
||
|
type = types.bool;
|
||
|
default = false;
|
||
|
description = "enable autocomplete";
|
||
|
};
|
||
|
|
||
|
type = mkOption {
|
||
|
type = types.enum ["nvim-cmp"];
|
||
|
default = "nvim-cmp";
|
||
|
description = "Set the autocomplete plugin. Options: [nvim-cmp]";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|