mirror of
https://github.com/folke/snacks.nvim.git
synced 2026-04-11 16:46:09 +00:00
🤖 I have created a release *beep* *boop* --- ## [2.31.0](https://github.com/folke/snacks.nvim/compare/v2.30.0...v2.31.0) (2026-03-20) ### Features * **gh:** added `Start Review`. Closes [#2463](https://github.com/folke/snacks.nvim/issues/2463) ([ac5f497](ac5f497005)) * **gh:** added cycle win and scrolling to scratch buffers when opened in a picker. Closes [#2480](https://github.com/folke/snacks.nvim/issues/2480) ([021855c](021855cf29)) * **gh:** make copilot authors as bots ([c6ab189](c6ab18964b)) * **gh:** make markview.nvim play nicely with snacks. See [#2467](https://github.com/folke/snacks.nvim/issues/2467) ([deeb1e0](deeb1e03e2)) * **gh:** open scratch buffers at the bottom of the window. Closes [#2476](https://github.com/folke/snacks.nvim/issues/2476) ([a6a9678](a6a967810e)) * **gh:** special formatting for code suggestions in review comments. See [#2463](https://github.com/folke/snacks.nvim/issues/2463) ([f1c7f62](f1c7f62f9f)) * **gh:** when selecting lines in a diff to add a review comment, you can now suggest code changes. See [#2463](https://github.com/folke/snacks.nvim/issues/2463) ([e896fb9](e896fb93f6)) * **lua:** add any treesitter injection to a string with a comment like -- inject:graphql ([1d5b12d](1d5b12d0c6)) * **picker.actions:** allow specifying an additional window for `cycle_win` ([197f393](197f393bbb)) * **picker.lspconfig:** show available dynamic registered code actions ([521ef46](521ef46ae9)) * **picker.lspconfig:** show available server commands and code actions ([7a90a08](7a90a089b7)) * **win:** `opts.footer_keys` can now be an array of lhs to show instead of all. See [#2469](https://github.com/folke/snacks.nvim/issues/2469) ([6d72138](6d721388cc)) * **win:** better zindex calculation ([08c0951](08c0951523)) * **win:** new border `top_bottom` ([6134c98](6134c98d48)) ### Bug Fixes * **gh.item:** timestamps should be in UTC, not local time ([1ba0bf8](1ba0bf8a10)) * **gh.scratch:** if scratch would hide the cursor, then scroll preview up taking scrolloff into account. See [#2480](https://github.com/folke/snacks.nvim/issues/2480) ([a271610](a2716102c8)) * **gh:** better integration with render-markdown. Closes [#2467](https://github.com/folke/snacks.nvim/issues/2467) ([717073d](717073df1a)) * **gh:** diff comment action should only show when available ([fe20e95](fe20e95780)) * **gh:** render gh comments as markdown when displaying in a non-markdown buffer. Closes [#2481](https://github.com/folke/snacks.nvim/issues/2481) ([06e9ca9](06e9ca95f8)) * **gh:** rendering of markdown comments. Closes [#2488](https://github.com/folke/snacks.nvim/issues/2488) ([dec29f5](dec29f5566)) * **gh:** set default scratch `height=15` and fix bottom offset for custom height ([6900f3f](6900f3feaa)) * **grep:** remove `MATCH_SEP` before sending to notify ([#2744](https://github.com/folke/snacks.nvim/issues/2744)) ([9912042](9912042fc8)) * **grep:** remove nul bytes from warning messages in grep output. Fixes [#2744](https://github.com/folke/snacks.nvim/issues/2744), Closes [#2768](https://github.com/folke/snacks.nvim/issues/2768) ([b2cb00e](b2cb00ef7d)) * **grep:** use %z to replace nul bytes ([a049339](a049339328)) * **input:** fixed completion. Closes [#2472](https://github.com/folke/snacks.nvim/issues/2472) ([3024376](3024376580)) * **lspconfig:** handle complex values in lsp config preview. Closes [#2711](https://github.com/folke/snacks.nvim/issues/2711) ([25f53f7](25f53f762c)) * **markdown:** use new markview API ([9b86d57](9b86d57cc5)) * **picker.actions:** `vim.v.count1` should be `1` in insert mode. Closes [#2492](https://github.com/folke/snacks.nvim/issues/2492) ([d902c0a](d902c0a415)) * **picker.confirm:** better layout for confirm ([7f62aa6](7f62aa6c6c)) * **picker.diff:** make diff filename extmarks play nicely with markview / markdown-renderer ([4f749ab](4f749ab355)) * **picker.git:** fix cwd for git diff. Closes [#2483](https://github.com/folke/snacks.nvim/issues/2483) ([9076793](907679381b)) * **picker.lsp:** wait for pending requests. See [#2527](https://github.com/folke/snacks.nvim/issues/2527) ([fe7cfe9](fe7cfe9800)) * **picker.preview:** remove `--no-ext-diff` option for git diff preview ([836e073](836e07336b)) * **picker.spinner:** when parent win is not float win ([#2487](https://github.com/folke/snacks.nvim/issues/2487)) ([8ca098c](8ca098ca36)) * **picker:** fix nowait for `<c-r>` ([685c433](685c433e61)) * **scratch:** set filetype correctly. Closes [#2510](https://github.com/folke/snacks.nvim/issues/2510) ([3c5c23b](3c5c23ba91)) * **util.diff:** proper linebreak repeat for annotation boxes ([64179b9](64179b96f5)) * **win:** allow scrolling beyond eob ([8b5f762](8b5f76292b)) * **win:** use normkey instead of keytrans for footer keys ([9bd41bb](9bd41bb2ff)) * **win:** when a floating win becomes non-floating, remove its backdrop ([c1e1500](c1e15001c0)) ### Performance Improvements * **bigfile:** disable completion to avoid lag when entering insert mode ([#2475](https://github.com/folke/snacks.nvim/issues/2475)) ([c49c3f3](c49c3f364c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>