From a145f997f3ad07aac8fcb90d993f502173234921 Mon Sep 17 00:00:00 2001 From: diniamo Date: Tue, 25 Jun 2024 14:01:44 +0200 Subject: [PATCH] modules/autopairs: use boolToString instead of toLuaObject --- modules/plugins/autopairs/nvim-autopairs/config.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/autopairs/nvim-autopairs/config.nix b/modules/plugins/autopairs/nvim-autopairs/config.nix index 4123c6a..3a20960 100644 --- a/modules/plugins/autopairs/nvim-autopairs/config.nix +++ b/modules/plugins/autopairs/nvim-autopairs/config.nix @@ -4,8 +4,8 @@ ... }: let inherit (lib.modules) mkIf; + inherit (lib.trivial) boolToString; inherit (lib.nvim.dag) entryAnywhere; - inherit (lib.nvim.lua) toLuaObject; cfg = config.vim.autopairs; in { @@ -13,7 +13,7 @@ in { vim.startPlugins = ["nvim-autopairs"]; vim.luaConfigRC.autopairs = entryAnywhere '' - require("nvim-autopairs").setup({ map_cr = ${toLuaObject (!config.vim.autocomplete.enable)} }) + require("nvim-autopairs").setup({ map_cr = ${boolToString (!config.vim.autocomplete.enable)} }) ''; }; }