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)
- window: added support for showing a floating window over the main window (3525169)
- window: allow setting width/height a size for splits. either will be used based on position (e8ee9b0)
- window: expose some window vars for integration with other plugins (edgy.nvim) (aae1da8)
Bug Fixes
- add vim to parser globals (6077342)
- api: make sure new=true works when opening with a mode string (398ac76)
- better defaults for lsp/diagnostics (569416d)
- better way of creating preview buffers (667b010)
- command: improved command completion (9f59aac)
- commmand: show mode descriptions (ce488b9)
- config: fixed some highlights to use the latest treesitter hl groups (63313cd)
- deprecated tbl_islist (#436) (5aa7993)
- diagnostics sections (27efb63)
- diagnostics: use main buffer for buffer-local diags (259770d)
- filter: fix range filter to include col (6cae8af)
- filter: range should also check that the buffer is the same (fdd27d8)
- format: always pass a valid buffer to ftdetect even just the current onw (b01b11e)
- help: sort keymaps case incensitive (5d81927)
- highlights: reset statusline hl groups when colorscheme changes (a665272)
- item: clamp pos (6c0204c)
- jump: save current main cursor to jump list before jumping. Fixes #385 (bd8bfc8)
- lsp: check if buf is still valid after receiving document symbols (33ec71c)
- lsp: handle invalid positions. Fixes #434 (371cf26)
- lsp: refresh on LspAttach (17afc44)
- main: always return a main window, even when no main. Fixes #426 (bda72a5)
- make focus the default (ba1ae49)
- parser: handle empty args (e667da7)
- preview: better preview for multiline items (60c9fdc)
- preview: center preview location and open folds. See #408 (a87fa2a)
- preview: clear highlights of preview buffer (d590491)
- preview: dont show preview for directories. Fixes #410 (769ee0f)
- preview: fixup for directory check (eed25b2)
- preview: pass valid buffer so that ftdetect works for ts files. See #435 (65f2430)
- preview: set correct winhighlight for preview window in main. See #408 (8c3c1db)
- preview: unload preview buffer again when closing and when it wasnt loaded before (8cc680a)
- proper deprecated fix ffs... Fixes #438 (a8264a6)
- properly deal with multiline treesitter segments (31681a9)
- qf: col/row offsets (8ad817f)
- remove
buf = 0
sorting since it acts weirdly with next/prev (2b589e9) - remove space from
zz zv
command (ca2cd56) - require Neovim >= 0.9.2 (2448521)
- section: dont trigger on invalid buffers (29ee890)
- setup: add check for NEovim 0.10.0 or markdown parsers. Fixes #413 (6267ef1)
- sources: always load sources when not registered yet. Fixes #393 (1470302)
- specs and tests (315f624)
- statusline: double escape
#
. Fixes #424 (9ddfd47) - statusline: make sure max_items is honored (da8ba7d)
- statusline: schedule statusline refresh (f000daa)
- telescope: close telescope after sending results to trouble (2753932)
- telescope: deprecation warning for old telescope provider (0d7cdeb)
- throttle: fixed throttling so that it now only gets scheduled when there are pending args (0db2084)
- tree: fixed tree item count. Fixes #419 (cb59440)
- tree: make sure qf items always have a unique id. Fixes #367 (c0755d5)
- treesitter: show warning for missing treesitter parsers (4253652)
- tree: use format as node id for group without fields (a29c293)
- ui: better deal with invalid items positions and extmarks. Fixes #404 (bc0a194)
- util: deprecation warnings for tbl_islist (7577f3a)
- util: typo (37f6266)
- util: use xpcall in throttle for better stack traces (6d9a0ba)
- view: check if trouble win is still valid in OptionSet. Fixes #400 (e9fae8c)
- view: check that window is open before checking active item (5b5446d)
- view: do
norm! zz zv
after jump. See #408 (74e31e7) - view: dont refresh items when calling
open
and already open (7485aa7) - view: dont trigger follow when moving. Fixes #3359 (7cc4df2)
- view: store restore locations when moving the cursor. See #367 (d8265a6)
- window: main window float should have regular winhighlight (6ccd579)
- window: properly deal with alien buffers opening in trouble windows (92832c4)
- windows: Corrected regex matching path with backslash. (#396) (a784506)
- window: set cursorlineopt for the trouble window. Fixes #356 (4c07228)