v0.6.0
版本发布时间: 2022-10-25 23:35:36
echasnovski/mini.nvim最新发布版本:v0.14.0(2024-09-26 21:56:43)
- Stop official support of Neovim 0.5.
- Make all messages use colors and not cause hit-enter-prompt.
mini.align
Introduction of new module.
mini.base16
- FEATURE: Add support for many plugin integrations.
- FEATURE: Implement
MiniBase16.config.plugins
for configuring plugin integrations. - BREAKING: Change some 'mini.nvim' highlights:
-
MiniCompletionActiveParameter
now highlights with background instead of underline. -
MiniJump2dSpot
now explicitly defined to use plugin's palette. -
MiniStarterItemPrefix
andMiniStarterQuery
are now bold for better visibility.
-
- BREAKING: Update highlight for changed git diff to be more visible and to comply more with general guidelines.
mini.jump
- BREAKING: Allow cursor to be positioned past the end of previous/current line (#113).
mini.map
Introduction of new module.
mini.starter
- Item evaluation is now prepended with query reset, as it is rarely needed any more (#105).
- All hooks are now called with
(content, buf_id)
signature allowing them properly use current window layout.
mini.surround
- BREAKING FEATURE: update 'mini.surround' to share as much with 'mini.ai' as possible. This provides more integrated experience while enabling more useful features. Details:
- Custom surrounding specification for input action has changed. Instead of
{ find = <string>, extract = <string> }
it is now{ <function or composed pattern> }
. Previous format will work until the next release. See more in help file. - Algorithm for finding surrounding is now more powerful. It allows searching for more complex surroundings (via composed patterns or array of region pairs) and respects
v:count
. - Multiline input and output surroundings are now supported.
- Opening brackets (
(
,[
,{
,<
) now include whitespace in surrounding: input surrounding selects all inner edge whitespace, output surrounding is padded with single space. - Surrounding identifier
i
("interactive") is soft deprecated in favor of?
("user prompt"). - New surrounding aliases:
-
b
for "brackets". Input - any of balanced()
,[]
{}
. Output -()
. -
q
for "quotes". Input - any of"
,'
,`
. Output -""
.
-
- Three new search methods
'prev'
,'next'
, and'nearest'
for finding non-covering previous and next surrounding.
- Custom surrounding specification for input action has changed. Instead of
- BREAKING FEATURE: Implement "last"/"next" extended mappings which force
'prev'
or'next'
search method. Controlled withconfig.mappings.suffix_last
andconfig.mappings.suffix_next
respectively. This also means that custom surroundings with identifier equal to "last"/"next" mappings suffixes (defaults to 'l' and 'n') will work only with long enough delay after typing action mapping. - FEATURE: Implement
MiniSurround.gen_spec
with generators of common surrounding specifications (likeMiniSurround.gen_spec.input.treesitter
for tree-sitter based input surrounding).