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

This commit is contained in:
Folke Lemaitre
2023-10-06 03:56:00 +02:00
committed by GitHub
parent 8c69f58427
commit 205f469244

View File

@@ -201,6 +201,13 @@ action_set.edit = function(prompt_bufnr, command)
end end
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) local pos = vim.api.nvim_win_get_cursor(0)
if col == nil then if col == nil then
if row == pos[1] then if row == pos[1] then