2023-02-27 15:53:34 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
2023-03-31 04:20:35 +02:00
|
|
|
with builtins; {
|
2023-02-27 15:53:34 +01:00
|
|
|
options.vim = {
|
|
|
|
autopairs = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2023-04-02 18:58:57 +02:00
|
|
|
description = "Enable autopairs";
|
2023-02-27 15:53:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
type = mkOption {
|
|
|
|
type = types.enum ["nvim-autopairs"];
|
|
|
|
default = "nvim-autopairs";
|
|
|
|
description = "Set the autopairs type. Options: nvim-autopairs [nvim-autopairs]";
|
|
|
|
};
|
|
|
|
|
|
|
|
nvim-compe = {
|
|
|
|
map_cr = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2023-04-17 23:59:23 +02:00
|
|
|
description = nvim.nmd.asciiDoc ''map <CR> on insert mode'';
|
2023-02-27 15:53:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
map_complete = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = "auto insert `(` after select function or method item";
|
|
|
|
};
|
|
|
|
|
|
|
|
auto_select = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "auto select first item";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|