cleanup: remove more nvim-compe

This commit is contained in:
Pei Yang Ching 2024-04-06 19:12:58 +02:00
parent 1d5fa0afdc
commit 893742f6e9

View file

@ -1,10 +1,10 @@
{lib, ...}: let
inherit (lib) mkRenamedOptionModule;
inherit (lib) mkRemovedOptionModule;
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) enum bool;
inherit (lib.types) enum;
in {
imports = [
# (mkRenamedOptionModule ["vim" "autopairs" "nvim-compe"] ["vim" "autopairs" "nvim-compe" "setupOpts"])
(mkRemovedOptionModule ["vim" "autopairs" "nvim-compe"] "nvim-compe is deprecated and no longer suported.")
];
options.vim = {
@ -16,26 +16,6 @@ in {
default = "nvim-autopairs";
description = "Set the autopairs type. Options: nvim-autopairs [nvim-autopairs]";
};
nvim-compe.setupOpts = lib.nvim.types.mkPluginSetupOption "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";
};
};
};
};
}