mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-05 02:07:19 +00:00
41 lines
933 B
Nix
41 lines
933 B
Nix
{lib, ...}: let
|
|
inherit (lib.options) mkEnableOption mkOption;
|
|
inherit (lib.tyoes) enum bool;
|
|
in {
|
|
options.vim = {
|
|
autopairs = {
|
|
enable = mkEnableOption "autopairs";
|
|
|
|
type = mkOption {
|
|
type = enum ["nvim-autopairs"];
|
|
default = "nvim-autopairs";
|
|
description = ''
|
|
Set the autopairs type.
|
|
|
|
Options:
|
|
- nvim-autopairs [nvim-autopairs]
|
|
'';
|
|
};
|
|
|
|
nvim-compe = {
|
|
map_cr = mkOption {
|
|
type = bool;
|
|
default = true;
|
|
description = ''map <CR> on insert mode'';
|
|
};
|
|
|
|
map_complete = mkOption {
|
|
type = bool;
|
|
default = true;
|
|
description = "auto insert `(` after select function or method item";
|
|
};
|
|
|
|
auto_select = mkOption {
|
|
type = bool;
|
|
default = false;
|
|
description = "auto select first item";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|