Skip to content

Releases: folke/trouble.nvim

v3.1.0

31 May 18:43
46a1938
Compare
Choose a tag to compare

3.1.0 (2024-05-31)

Features

  • added severity filter keymap and improved filtering actions (7842dbb)
  • only open trouble when results (optionally). Fixes #450 (8fbd2ab)
  • telescope: allow passing additional trouble options to telescope open/add. Fixes #457 (4eaaf9c)

Bug Fixes

  • close section session when needed (2caf73d)
  • fold: start folding with closest non leaf node. Fixes #420 (f248c69)
  • follow: improve the way follow works (cf81aac)
  • format: compat old signs (0e843ed)
  • format: fallback to sign_defined. Fixes #448 (36545cb)
  • lsp: batch get offset position for lsp results. See #452 (96c30dc)
  • lsp: correctly clear location cache (7ea94a6)
  • lsp: exclude locations that match the current line (8c03e13)
  • make sure line is always a string passed to get_line_col (5a12185)
  • preview: correctly load non-scratch buffers (965f56f)
  • preview: correctly pass options to create scratch buffers. Fixes #451 (c50c7e3)
  • preview: don't error on invalid positions (6112c3c)
  • qf: only listen for TextChanged in the main buffer. See #201 (f75992f)
  • qf: update qflist on TextChanged to update pos. Fixes #201 (c1d9294)
  • stop (bda8de4)
  • telescope: remove filter on buf = 0. See #399 (f776ab0)
  • view: restore loc on first render and dont delete last loc if trouble window was never visisted. See #367 (51bf510)

Performance Improvements

  • lsp: cache location requests (6053627)
  • lsp: optimize batch fetching lsp item locations. Fixes #452 (a6f1af5)
  • much faster treesitter highlighter (d4de08d)
  • prevent autocmd leaks (9e3391c)
  • preview: re-use existing preview when preview is for the same file (a415b64)

v3.0.0

30 May 12:43
Compare
Choose a tag to compare

3.0.0 (2024-05-30)

⚠ BREAKING CHANGES

  • Trouble v3 is now merged in main. You may need to update your configs.

Features

  • Trouble now shows vim.ui.select to chose a mode (0189184)
  • added basename/dirname (bb3740a)
  • added help (68ac238)
  • added kind symbol highlights (de08657)
  • added lpeg parser for parsing :Trouble args into lua tables (b25ef53)
  • added missing fold keymaps. folding is now feature complete (9fb1be0)
  • added multiline option back (d80e978)
  • added proper api (a327003)
  • added support for formatting fields with a treesitter language (21cfee9)
  • allow items without buf (c3b01ce)
  • allow top-level filter (12447df)
  • config: added auto_jump to jump to the item when there's only one. Fixes #409 (94a84ab)
  • config: added keymap to inspect an item. Useful for dev (9da1a47)
  • config: set focus=false by default (c7e5398)
  • diagnostics: added support for diagnostics signs on Neovim >= 0.10.0. Fixes #369, fixes #389 (6303740)
  • filter: added filetype filter (e541444)
  • filter: easier filtering of any values (1b528d8)
  • filter: range filter (34a06d6)
  • filters, formatters and sorters are now configurable (c16679d)
  • format: formats now support {one|two}. First field that returns a value will be used (26ad82e)
  • global view filters and easy toggling of just items of the current buffer (11e7c39)
  • improved commandline parser and completion (f7eccfb)
  • initial commit of rewrite (d9542ca)
  • item hierarchies and directory grouping (d2ed413)
  • Item.get_lang and Item.get_ft (498da6b)
  • item: util method to add missing text to items (de9e7e6)
  • lsp: added lsp_incoming_calls and lsp_outgoing_calls. Closes #222 (b855469)
  • lsp: document symbols caching and compat with Neovim 0.9.5 (2f49b92)
  • main window tracking (23a0631)
  • make the preview action a toggle (86da179)
  • preview can now be shown in a split/float (e2919eb)
  • preview is now fully configurable (b99110a)
  • preview: option to force loading real buffers in preview. Fixes #435 (ccacba2)
  • preview: use a float to show preview in the main window instead of messing with the main window itself (9e0311d)
  • preview: window var to know a window is a preview win (dcecbb9)
  • qf: add treesitter highlighting to quickfix/loclist. Fixes #441 (325d681)
  • render: {field:ts} will now use the treesitter lang of the item buffer for highlighting (21af85c)
  • render: added support for rendering multiple sections (332b25b)
  • source: added lsp source (3969907)
  • source: added quickfix source (3507b7b)
  • sources: added support for loading external sources (89ac6f1)
  • sources: added telescope source (39069e2)
  • source: sources can now have multiple child sources (c433301)
  • source: sources now always execute in the context of the main window even when a preview is active (4eab561)
  • statusline: added statusline component (5c0b163)
  • statusline: allow 'fixing' the statusline bg color based on a hl_group. Fixes #411 (986b44d)
  • statusline: statusline api (c219a1a)
  • telescope: added option to add telescope results to trouble, without clearing the existing results. Fixes #370 (a7119ab)
  • tree: added flatten() to get all items from the tree (35c0236)
  • Trouble v3 is now merged in main. You may need to update your configs. (1b362b8)
  • util: better notify functions (c68c915)
  • util: fast get_lines for a buffer (6940cd8)
  • util: fast plain text split (6a30aec)
  • util: make throttles configurable (8c297c1)
  • view: added support for pinned views. Main window of the view will stay the same as long as its a valid window (17131e2)
  • view: expose some params in the trouble window var. Fixes #357 (a4b9849)
  • view: follow now also scrolls to the file in the list when not on an item (30b939e)
  • view: follow the current item in the list (e76e280)
  • view: when toggling a trouble list, restore to the last location. Fixes #367 (1d951f5)
  • window: added possibility to override TroubleNormalNC. Fixes #216 ([daa5157](https://github.com/fol...
Read more

v2.10.0

18 Oct 11:01
f1168fe
Compare
Choose a tag to compare

2.10.0 (2023-10-18)

Features

  • open({focus=false}) now works as intended (600fe24)

Bug Fixes

  • auto_open: dont steal focus on auto open. Fixes #344 (1f00b6f)

v2.9.1

09 Oct 22:10
02219b5
Compare
Choose a tag to compare

2.9.1 (2023-10-09)

Bug Fixes

v2.9.0

07 Oct 09:49
2ea761f
Compare
Choose a tag to compare

2.9.0 (2023-10-07)

Features

  • Make floating window configuration customizable (#310) (ef0336a)

Bug Fixes

  • check that view is valid before render and focus (#319) (81e1643)
  • only filter msg if sev is hardcoded (#328) (0ccc43d)
  • qf: properly deal with invalid qf entries. Fixes #87. Fixes #188. Fixes #336 (46b60e9)

v2.8.0

25 Jul 17:41
fc4bb22
Compare
Choose a tag to compare

2.8.0 (2023-07-25)

Features

  • Create Configuration for IncludeDeclaration (#312) (7691d93)

v2.7.0

25 Jul 17:33
bc6e309
Compare
Choose a tag to compare

2.7.0 (2023-07-25)

Features

  • Expose help action (#311) (467dc20)
  • Use code descriptions for opening URIs with extra information (#309) (d2b0f1d)

v2.6.0

22 Jul 08:19
d572f59
Compare
Choose a tag to compare

2.6.0 (2023-07-22)

Features

  • make multiline the default (1f2eb71)

v2.5.0

22 Jul 08:16
aa02004
Compare
Choose a tag to compare

2.5.0 (2023-07-22)

Features

v2.4.0

16 Jul 08:39
20d1b30
Compare
Choose a tag to compare

2.4.0 (2023-07-16)

Features

  • add option to control cycling of result list (#302) (e7805dc)
  • rendering messages from provider (#304) (a66a78b)

Bug Fixes

  • Check parent window is valid before setting active (#291) (c14786d)
  • move end of doc pos to last line. Fixes #151 (cb4da04)