mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-04 10:55:50 +00:00
17 lines
331 B
Nix
17 lines
331 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
cfg = config.vim.autopairs.nvim-autopairs;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.lazy.plugins.nvim-autopairs = {
|
|
package = "nvim-autopairs";
|
|
setupModule = "nvim-autopairs";
|
|
setupOpts = cfg.setupOpts;
|
|
event = ["InsertEnter"];
|
|
};
|
|
};
|
|
}
|