From f70f4c523e972243a697c2f126e165842a0483e1 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 28 Jan 2025 14:10:43 -0600 Subject: [PATCH] refactoring: fix conditional lazyLoad --- modules/nixvim/plugins/refactoring/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/nixvim/plugins/refactoring/default.nix b/modules/nixvim/plugins/refactoring/default.nix index d3162c1..98a7279 100644 --- a/modules/nixvim/plugins/refactoring/default.nix +++ b/modules/nixvim/plugins/refactoring/default.nix @@ -7,9 +7,11 @@ lazyLoad = { settings = { - before.__raw = lib.mkIf config.plugins.telescope.enable '' - require('lz.n').trigger_load('telescope') - ''; + before = lib.mkIf config.plugins.telescope.enable { + __raw = '' + require('lz.n').trigger_load('telescope') + ''; + }; cmd = "Refactor"; keys = lib.mkIf config.plugins.telescope.enable [ {