Merge pull request #536 from horriblename/telescope-extensions-workaround

telescope: workaround nixpkgs extensions breaking :Telescope
This commit is contained in:
raf 2025-01-10 13:22:26 +03:00 committed by GitHub
commit 2c54ecd306
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')"}