feat: apply new module format to nvim-cmp

This commit is contained in:
NotAShelf 2023-02-27 17:52:43 +03:00
commit 4436c2b2aa
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 146 additions and 125 deletions

View file

@ -0,0 +1,26 @@
{
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]";
};
};
};
}