Skip to content

Commit 205f469

Browse files
authored
fix(actions): fixes folding. Fixes #699 (#2726)
1 parent 8c69f58 commit 205f469

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lua/telescope/actions/set.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ action_set.edit = function(prompt_bufnr, command)
201201
end
202202
end
203203

204+
-- HACK: fixes folding: https://github.com/nvim-telescope/telescope.nvim/issues/699
205+
if vim.wo.foldmethod == "expr" then
206+
vim.schedule(function()
207+
vim.opt.foldmethod = "expr"
208+
end)
209+
end
210+
204211
local pos = vim.api.nvim_win_get_cursor(0)
205212
if col == nil then
206213
if row == pos[1] then

0 commit comments

Comments
 (0)