2023-11-07 00:50:27 +00:00
|
|
|
{lib, ...}: let
|
2024-04-06 17:12:58 +00:00
|
|
|
inherit (lib) mkRemovedOptionModule;
|
2024-02-26 05:05:23 +00:00
|
|
|
inherit (lib.options) mkEnableOption mkOption;
|
2024-04-06 17:12:58 +00:00
|
|
|
inherit (lib.types) enum;
|
2023-11-07 00:50:27 +00:00
|
|
|
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
|
|
|
];
|
|
|
|
|
2023-02-27 14:53:34 +00:00
|
|
|
options.vim = {
|
|
|
|
autopairs = {
|
2023-06-05 20:10:25 +00:00
|
|
|
enable = mkEnableOption "autopairs" // {default = false;};
|
2023-02-27 14:53:34 +00:00
|
|
|
|
|
|
|
type = mkOption {
|
2024-02-26 05:05:23 +00:00
|
|
|
type = enum ["nvim-autopairs"];
|
2023-02-27 14:53:34 +00:00
|
|
|
default = "nvim-autopairs";
|
|
|
|
description = "Set the autopairs type. Options: nvim-autopairs [nvim-autopairs]";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|