folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.11k stars 173 forks source link

bug: Auto open appears not to work after v3 upgrade #489

Closed cdown closed 3 weeks ago

cdown commented 3 weeks ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.10.0

Operating system/version

Arch Linux

Describe the bug

Hi there, after upgrading to trouble v3, auto_open appears not to function any more. I know some config settings were changed, so I looked around, but it still seems like these are the supported way from the README and thus I suppose it's not expected that auto_open no longer opens the buffer. There are diagnostics present.

If I do :Trouble and select 1, the buffer opens normally.

If I downgrade to my previous version (2.2.0), auto_open works again.

Let me know what I can do to help debug, if this does not repro. Here is my config (the same for both 2.2.0 and 3.3.0):

require('trouble').setup({
  auto_open = true,
  auto_close = true,
  fold_open = "v",
  fold_closed = ">",
  indent_lines = false,
  icons = {
    indent = {
      top           = "| ",
      middle        = "+-",
      last          = "`-",
      fold_open     = "> ",
      fold_closed   = "v ",
      ws            = "  ",
    },
    folder_closed   = "[ ] ",
    folder_open     = "[>] ",
  },
})

Thanks for the great plugin!

Steps To Reproduce

  1. Have auto_open = true in config

Expected Behavior

The trouble buffer should auto open.

Repro

No response