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
I have searched the existing issues of trouble.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.10.0-nightly
Operating system/version
MacOS 14.4
Describe the bug
There used to be a config parameter on main for setting auto_jump direct jump to location when only one result entry is for the given mode instead of opening the trouble window. This auto_jump was enabled for lsp_definitions mode by default.
Steps To Reproduce
Trigger Trouble lsp_definitions open on a method call for example
Expected Behavior
Jump to definition immediately if only one definition location found for the item under the cursor without opening the trouble window.
Have a config parameter to enable this behaviour for other modes as well.
-- 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",
-- 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:
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0-nightly
Operating system/version
MacOS 14.4
Describe the bug
There used to be a config parameter on main for setting
auto_jump
direct jump to location when only one result entry is for the given mode instead of opening the trouble window. Thisauto_jump
was enabled forlsp_definitions
mode by default.Steps To Reproduce
Trigger
Trouble lsp_definitions open
on a method call for exampleExpected Behavior
Jump to definition immediately if only one definition location found for the item under the cursor without opening the trouble window.
Have a config parameter to enable this behaviour for other modes as well.
Related issues from the past:
Repro
The text was updated successfully, but these errors were encountered: