[X] I have searched the existing issues of trouble.nvim
[X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.10.0
Operating system/version
Windows 10 22H2
Describe the bug
When using the split preview from the examples, hovering/selected a single item opens all folds. I assume this is how the preview/trouble windows are refreshed in the split.
I tested this with type main and type float for the preview and both retain the fold state.
preview is refreshed along with the trouble window
all folds are opened
Expected Behavior
When hovering/selecting an item the folds stay folded.
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repo
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.loop.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 = {
"folke/tokyonight.nvim",
"folke/trouble.nvim",
-- add any other plugins here
{
"nvim-telescope/telescope.nvim",
tag = "0.1.8",
name = "telescope",
dependencies = {
"nvim-lua/plenary.nvim",
}
config = function()
require("telescope").setup({
defaults = {
mappings = {
n = { ["<c-t>"] = open_with_trouble },
},
}
})
end
}
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
Windows 10 22H2
Describe the bug
When using the split preview from the examples, hovering/selected a single item opens all folds. I assume this is how the preview/trouble windows are refreshed in the split.
I tested this with type
main
and typefloat
for the preview and both retain the fold state.Steps To Reproduce
zM
)za
)Expected Behavior
When hovering/selecting an item the folds stay folded.
Repro