feat(autopairs): custom setup opts

This commit is contained in:
Ching Pei Yang 2024-02-17 14:13:52 +01:00
commit 6fd35972d9
2 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,12 @@
{lib, ...}: let
inherit (lib) mkRenamedOptionModule;
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) enum bool;
in {
imports = [
# (mkRenamedOptionModule ["vim" "autopairs" "nvim-compe"] ["vim" "autopairs" "nvim-compe" "setupOpts"])
];
options.vim = {
autopairs = {
enable = mkEnableOption "autopairs" // {default = false;};
@ -12,7 +17,7 @@ in {
description = "Set the autopairs type. Options: nvim-autopairs [nvim-autopairs]";
};
nvim-compe = {
nvim-compe.setupOpts = lib.nvim.types.mkPluginSetupOption "nvim-compe" {
map_cr = mkOption {
type = bool;
default = true;