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

22 lines
584 B
Nix
Raw Normal View History

{lib, ...}: let
2024-04-06 17:12:58 +00:00
inherit (lib) mkRemovedOptionModule;
inherit (lib.options) mkEnableOption mkOption;
2024-04-06 17:12:58 +00:00
inherit (lib.types) enum;
in {
2024-02-17 13:13:52 +00:00
imports = [
2024-04-06 17:12:58 +00:00
(mkRemovedOptionModule ["vim" "autopairs" "nvim-compe"] "nvim-compe is deprecated and no longer suported.")
2024-02-17 13:13:52 +00: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]";
};
};
};
}