mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-09 20:01:34 +00:00
feat: apply new module format to nvim-cmp
This commit is contained in:
parent
f9b44dd9cb
commit
4436c2b2aa
4 changed files with 146 additions and 125 deletions
26
modules/completion/nvim-cmp/nvim-cmp.nix
Normal file
26
modules/completion/nvim-cmp/nvim-cmp.nix
Normal 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]";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue