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