From 752915e639a1c70002c885dba530a685b5174d08 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Tue, 7 Jan 2025 06:46:12 +0100 Subject: [PATCH] telescope: workaround nixpkgs extensions loading early force a reload when telescope is loaded to workaround #535 --- modules/plugins/utility/telescope/config.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/plugins/utility/telescope/config.nix b/modules/plugins/utility/telescope/config.nix index 76cfa8bd..95f81327 100644 --- a/modules/plugins/utility/telescope/config.nix +++ b/modules/plugins/utility/telescope/config.nix @@ -22,6 +22,12 @@ in { package = "telescope"; setupModule = "telescope"; inherit (cfg) setupOpts; + + # HACK: workaround until https://github.com/NotAShelf/nvf/issues/535 gets resolved + before = '' + vim.g.loaded_telescope = nil + ''; + after = '' local telescope = require("telescope") ${optionalString config.vim.ui.noice.enable "telescope.load_extension('noice')"}