neovim-flake/modules/autopairs/nvim-autopairs/nvim-autopairs.nix

22 lines
584 B
Nix
Raw Normal View History

{lib, ...}: let
2024-04-06 19:12:58 +02:00
inherit (lib) mkRemovedOptionModule;
inherit (lib.options) mkEnableOption mkOption;
2024-04-06 19:12:58 +02:00
inherit (lib.types) enum;
in {
2024-02-17 14:13:52 +01:00
imports = [
2024-04-06 19:12:58 +02:00
(mkRemovedOptionModule ["vim" "autopairs" "nvim-compe"] "nvim-compe is deprecated and no longer suported.")
2024-02-17 14:13:52 +01:00
];
options.vim = {
autopairs = {
enable = mkEnableOption "autopairs" // {default = false;};
type = mkOption {
type = enum ["nvim-autopairs"];
default = "nvim-autopairs";
description = "Set the autopairs type. Options: nvim-autopairs [nvim-autopairs]";
};
};
};
}