nvf/modules/autopairs/nvim-autopairs/nvim-autopairs.nix

36 lines
888 B
Nix
Raw Normal View History

{lib, ...}:
with lib;
2023-03-31 02:20:35 +00:00
with builtins; {
options.vim = {
autopairs = {
enable = mkEnableOption "autopairs" // {default = false;};
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 21:59:23 +00:00
description = nvim.nmd.asciiDoc ''map <CR> on insert mode'';
};
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";
};
};
};
};
}