From 02bc41412a14c1c0bb823421ef82ff5596f42571 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 9 Oct 2023 23:32:34 +0200 Subject: [PATCH] fix(telescope): remove telescope folding hack since PR with fix has been merged upstream --- lua/lazyvim/config/autocmds.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lua/lazyvim/config/autocmds.lua b/lua/lazyvim/config/autocmds.lua index 9f4344cf..4cc6f1ec 100644 --- a/lua/lazyvim/config/autocmds.lua +++ b/lua/lazyvim/config/autocmds.lua @@ -92,16 +92,3 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, { vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p") end, }) - --- HACK: re-caclulate folds when entering a buffer through Telescope --- @see https://github.com/nvim-telescope/telescope.nvim/issues/699 -vim.api.nvim_create_autocmd("BufEnter", { - group = augroup("fix_folds"), - callback = function() - if vim.opt.foldmethod:get() == "expr" then - vim.schedule(function() - vim.opt.foldmethod = "expr" - end) - end - end, -})