Releases: folke/trouble.nvim
Releases · folke/trouble.nvim
v3.1.0
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
v3.0.0
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
andlsp_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...