Releases: folke/trouble.nvim
Releases · folke/trouble.nvim
v3.4.0
3.4.0 (2024-06-11)
Features
- added fzf-lua integration (d14323f)
- fzf-lua: added smart open/add that will use selection or all when nothing selected. (bed3c5b)
Bug Fixes
- fzf-lua: smart-open on windows (4d0f045)
- initialize
auto_open
. Fixes #489 (0793267) - spec: properly process actions. Fixes #494 (3082f4b)
- telescope: autmatically select telescope_files mode if list are files without locations. Fixes #466 (1ad6b14)
- telescope: set end_pos to end of word (4deb811)
- views: pending should be considered open. Fixes #492 (57b50a6)
v3.3.0
3.3.0 (2024-06-07)
Features
- lsp: most lsp sources now support
params.include_current
. Fixes #482 (29d19d4) - window: more options for mapping keys (fdcfc5a)
- you can now use
dd
andd
to delete items in the trouble list. Fixes #149. Fixes #347 (e879302)
Bug Fixes
- api: only refresh on open if there's no action. Fixes #488 (2661f46)
- preview: fixed mouse clicks in the preview main window. Fixes #484 (98d9ed7)
- telescope: show error when use tries to add when telescope picker does not exist (c11dc27)
- use vim.loop for nvim 0.9 in view/init.lua (#487) (791278e)
- view: when calling open when the view is already open, do a refresh. See #485 (39595e8)
v3.2.0
3.2.0 (2024-06-06)
Features
- lsp: add incoming/outgoing calls to lsp mode (8adafc1)
- lsp: added support for showing locations from lsp execute commands (b1d16ac)
- promise class (84f0c6d)
Bug Fixes
- api: show error when an invalid mode was used. Fixes #465 (4b1914c)
- format: pos format. See #472 (abdfa1d)
- lsp: check for nil on faulty lsp results (d7f69ff)
- lsp: dont process nil results (06a4892)
- lsp: send request only to needed clients (c147a75)
- lsp: use document uri of document symbols don't have an uri set. Fixes #480 (358f0ee)
- preview: hide winbar when previewing in main. Fixes #464 (250ea79)
- preview: respect fold settings. Fixes #459 (29d1bb8)
- preview: set correct extmark priorities in preview highlight. Fixes #476 (13ad959)
- view: correctly set folding options to wo. See #477 (9151797)
- view: ensure fold settings are correct for the trouble views. See #477 (b5181b6)
- view: execute actions on first render (97bfb74)
- window: account for winbar for preview in main. Fixes #468 (23ded52)
- window: set default winblend=0. See #468 (e296940)
Performance Improvements
- use promises for fetching sections (e49a490)
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...