telescope: workaround nixpkgs extensions loading early

force a reload when telescope is loaded to workaround #535
This commit is contained in:
Ching Pei Yang 2025-01-07 06:46:12 +01:00
parent aa7b55fa49
commit 752915e639
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -22,6 +22,12 @@ in {
package = "telescope"; package = "telescope";
setupModule = "telescope"; setupModule = "telescope";
inherit (cfg) setupOpts; inherit (cfg) setupOpts;
# HACK: workaround until https://github.com/NotAShelf/nvf/issues/535 gets resolved
before = ''
vim.g.loaded_telescope = nil
'';
after = '' after = ''
local telescope = require("telescope") local telescope = require("telescope")
${optionalString config.vim.ui.noice.enable "telescope.load_extension('noice')"} ${optionalString config.vim.ui.noice.enable "telescope.load_extension('noice')"}