fix(actions): fixes folding. Fixes #699 (#2726)

(cherry picked from commit 205f469244)
This commit is contained in:
Folke Lemaitre
2023-10-06 03:56:00 +02:00
committed by Simon Hauser
parent 88474adc28
commit 2eb23ffa34
+7
View File
@@ -163,6 +163,13 @@ action_set.edit = function(prompt_bufnr, command)
end
end
-- HACK: fixes folding: https://github.com/nvim-telescope/telescope.nvim/issues/699
if vim.wo.foldmethod == "expr" then
vim.schedule(function()
vim.opt.foldmethod = "expr"
end)
end
local pos = vim.api.nvim_win_get_cursor(0)
if col == nil then
if row == pos[1] then