mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-04 03:36:04 +00:00
(cherry picked from commit 205f469244)
This commit is contained in:
committed by
Simon Hauser
parent
88474adc28
commit
2eb23ffa34
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user