-
-
Notifications
You must be signed in to change notification settings - Fork 945
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Whenever a file is opened via telescope, folding is enabled. This occurs after #3595
Neovim version
NVIM v0.11.5
Build type: RelWithDebInfo
LuaJIT 2.1.1765228720Operating system and version
Arch Linux 6.18.2-arch2-1
Telescope version / branch / rev
v0.2.0-3-g4d0f5e0
checkhealth telescope
telescope: 1 ⚠️
Checking for required plugins ~
- ✅ OK plenary installed.
Checking external dependencies ~
- ✅ OK rg: found ripgrep 15.1.0
- ⚠️ WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities
===== Installed extensions ===== ~
Telescope Extension: `fzf` ~
- ✅ OK lib working as expected
- ✅ OK file_sorter correctly configured
- ✅ OK generic_sorter correctly configuredSteps to reproduce
nvim -nu minimal.lua
:Telescope find_files
select file
Expected behavior
no folding in the file
Actual behavior
the file is folded
Minimal config
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs { "config", "data", "state", "cache" } do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
vim.fn.system {
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
}
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.opt.foldenable = false
require("telescope").setup {}
end,
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working