You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets say I have the 4 files abc, d opened in a trouble window (e.g. from Telescope from a Quickfix list, it does not matter).
When I execute :lua require'trouble'.next({jump=true}) a few times, the order of the trouble list changes.
Steps To Reproduce
mkdir test && cd test
touch a b c d
nvim -u path/to/repro.lua
:Telescope find_files
Press <C-q> to open all files in a trouble window
:lua require'trouble'.next({jump=true})
:lua require'trouble'.next({jump=true})
--> The order is already messed up
this also happens with quickfix lists.
BTW: what is the difference between :Trouble qflist and :Trouble quickfix ?? i can open two trouble windows, showing the same content?
Expected Behavior
Order should not change.
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{
"folke/trouble.nvim",
branch="dev",
lazy=false,
opts= {
follow=false,
restore=true,
auto_preview=false,
auto_refresh=false,
},
},
{
'nvim-telescope/telescope.nvim',
dependencies= { 'nvim-lua/plenary.nvim' },
config=function()
localopen_with_trouble=require("trouble.sources.telescope").openrequire('telescope').setup {
defaults= {
mappings= {
i= {
['<C-q>'] =open_with_trouble,
}
}
}
}
end,
}
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
I guess it makes sense for diagnostics that they sort every time you move or jump inside the list, since fixing lsp errors is a continuous task. But for quickfix, loclist, todo comments (which have imho no severity?) and telescope results its quite confusing when the order changes every time you move
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.5 Build type: Release LuaJIT 2.1.1703358377
Operating system/version
MacOs 14.2.1
Describe the bug
Lets say I have the 4 files
a
b
c
,d
opened in a trouble window (e.g. from Telescope from a Quickfix list, it does not matter).When I execute
:lua require'trouble'.next({jump=true})
a few times, the order of the trouble list changes.Steps To Reproduce
mkdir test && cd test
touch a b c d
nvim -u path/to/repro.lua
:Telescope find_files
<C-q>
to open all files in a trouble window:lua require'trouble'.next({jump=true})
:lua require'trouble'.next({jump=true})
--> The order is already messed up
this also happens with quickfix lists.
BTW: what is the difference between
:Trouble qflist
and:Trouble quickfix
?? i can open two trouble windows, showing the same content?Expected Behavior
Order should not change.
Repro
The text was updated successfully, but these errors were encountered: