2023-06-05 20:10:25 +00:00
|
|
|
{lib, ...}:
|
2023-02-27 14:53:34 +00:00
|
|
|
with lib;
|
2023-03-31 02:20:35 +00:00
|
|
|
with builtins; {
|
2023-02-27 14:53:34 +00:00
|
|
|
options.vim = {
|
|
|
|
autopairs = {
|
2023-06-05 20:10:25 +00:00
|
|
|
enable = mkEnableOption "autopairs" // {default = false;};
|
2023-02-27 14:53:34 +00: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-11-04 11:30:04 +00:00
|
|
|
description = ''map <CR> on insert mode'';
|
2023-02-27 14:53:34 +00: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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|