From 893742f6e9df239379df9fdfdd7785df689b8dc3 Mon Sep 17 00:00:00 2001 From: Pei Yang Ching Date: Sat, 6 Apr 2024 19:12:58 +0200 Subject: [PATCH] cleanup: remove more nvim-compe --- .../nvim-autopairs/nvim-autopairs.nix | 26 +++---------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/modules/autopairs/nvim-autopairs/nvim-autopairs.nix b/modules/autopairs/nvim-autopairs/nvim-autopairs.nix index 73b6bed..7e45606 100644 --- a/modules/autopairs/nvim-autopairs/nvim-autopairs.nix +++ b/modules/autopairs/nvim-autopairs/nvim-autopairs.nix @@ -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 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"; - }; - }; }; }; }