From 81f8b66de4f038200976df0081d2d750e41f99e9 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 4 Oct 2023 20:24:01 +0200 Subject: [PATCH] fixed wrapping with telescope --- lua/plugins/telescope.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index d75b99a..16d021c 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -213,5 +213,14 @@ return { if vim.loop.os_uname().sysname == 'Windows_NT' then vim.env.HOME = home end + vim.api.nvim_create_autocmd('BufEnter', { + callback = function() + if vim.opt.foldmethod:get() == 'expr' then + vim.schedule(function() + vim.opt.foldmethod = 'expr' + end) + end + end, + }) end }