mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-16 20:34:39 +02:00
fix(telescope): remove telescope folding hack since PR with fix has been merged upstream
This commit is contained in:
parent
44984dcbe2
commit
02bc41412a
1 changed files with 0 additions and 13 deletions
|
@ -92,16 +92,3 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||||
vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p")
|
vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p")
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- HACK: re-caclulate folds when entering a buffer through Telescope
|
|
||||||
-- @see https://github.com/nvim-telescope/telescope.nvim/issues/699
|
|
||||||
vim.api.nvim_create_autocmd("BufEnter", {
|
|
||||||
group = augroup("fix_folds"),
|
|
||||||
callback = function()
|
|
||||||
if vim.opt.foldmethod:get() == "expr" then
|
|
||||||
vim.schedule(function()
|
|
||||||
vim.opt.foldmethod = "expr"
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue