mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 15:30:50 +00:00
feat(autopairs): custom setup opts
This commit is contained in:
parent
2ea98f643b
commit
3d350bcfe4
2 changed files with 9 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.options) mkEnableOption mkOption mkRenamedOptionModule;
|
||||
inherit (lib.types) enum bool;
|
||||
in {
|
||||
options.vim = {
|
||||
|
|
@ -12,7 +12,11 @@ in {
|
|||
description = "Set the autopairs type. Options: nvim-autopairs [nvim-autopairs]";
|
||||
};
|
||||
|
||||
nvim-compe = {
|
||||
imports = [
|
||||
(mkRenamedOptionModule ["vim" "autopairs" "nvim-compe"] ["vim" "autopairs" "nvim-compe" "setupOpts"])
|
||||
];
|
||||
|
||||
nvim-compe.setupOpts = lib.nvim.types.mkPluginSetupOption {
|
||||
map_cr = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue