This is the log of changes for past and current development versions. It lists changes in user-facing functionality per module (or all modules) and type.
There are following change types:
Evolve- change in previously intended functionality while adding a new one.Refine- change in previously intended functionality without adding new one. This is usually described as a "breaking change", but used here in a sense that it might break user's expectations about existing functionality.Expand- adding new functionality without affecting existing ones. This is essentially new features.
- Add new plugin integrations:
- 'folke/snacks.nvim'
- Allow mode arrays for clues and triggers for parity with
modesparameter ofvim.keymap.set. By @pkazmier, PR #2202.
- Add
pickers.manpagespicker.
- Add new plugin integrations:
- 'folke/snacks.nvim'
-
Update
setup_termbg_sync()to use OSC 111 control sequence to reset terminal emulator's background color. This provides a more robust behavior across platforms (liketmux).The previous "reset by explicitly setting initial background color" behavior is available by setting the new
opts.explicit_resetoption totrue.
- Allow
source.previewto directly set another buffer into picker's main window. The recommended way is still to adjust the providedbuf_idbuffer, but there is now a workaround if this is not reasonably possible.
-
Move repository hosting from personal 'echasnovski' GitHub account to the 'nvim-mini' organization. All
git pullandgit cloneshould be automatically redirected from previous to new locations without breaking user configurations. Yet updating source links to point to new locations (like'echasnovski/mini.nvim'->'nvim-mini/mini.nvim'and standalone repos) is recommended.This change is made to improve long term project stability. See more details here.
-
Start setting custom Neovim method implementation during
setup()(if module provides one). This is usually the expected behavior for majority of use cases and should improve "out of the box" experience. Modules should still export a function to manually adjust the implementation.It is a breaking change only if the implementation was not explicitly used. Can still be done if set or restored after calling module's
setup().Affected modules:
- 'mini.notify' sets
vim.notify. - 'mini.pick' sets
vim.ui.select.
- 'mini.notify' sets
- Stop official support of Neovim 0.8.
- Add new bundled color schemes based on 'mini.hues':
miniwinter: "icy winter" palette with azure background.minispring: "blooming spring" palette with green background.minisummer: "hot summer" palette with brown/yellow background.miniautumn: "cooling autumn" palette with purple background.
- Update
gen_spec.treesitter()to haveuse_nvim_treesitter = falseas default option value (instead oftrue). It used to implement more advanced behavior, but as built-invim.treesitteris capable enough, there is no need in extra dependency. The option will be removed after the release.
- Add
gen_spec.user_promptthat acts the same as?built-in textobject. It can be used for using this textobject under another identifier.
- Change default value of
options.win_borderto be'auto'.
- Update
options.win_borderto allow value'auto'which infers target 'fillchars' values from 'winborder' option.
- Update
add_transparency()color scheme method to adjust more groups:XxxMsggroups in case ofopts.general = true.DiagnosticSignXxxgroups in case ofopts.statuscolumn = true.
- Update
setup()to remove "t" flag from 'complete' option (if not previously set and fallback action is default) as it leads to visible lags.
-
Add
MiniCompletionWindowOpenandMiniCompletionWindowUpdateevents. -
Add support for highlighting LSP item label via setting
abbr_hlgroupfield as part of an LSP item (like insideconfig.lsp_completion.process_items).
- Use current query clue (if not immediately after trigger) as a window title instead of showing keys verbatim. This shows extra context when navigating through mappings.
-
Add
gen_clues.square_bracketsto generate clues for[and]keys. By @TheLeoP, PR #1937. -
Ensure triggers for 'mini.starter' buffers, but not override its query updaters (like for "g" and "z" triggers).
- Introduction of a new module.
- Add support for working with files containing BOM bytes.
- Update default
write_prehook to remove===and---delimiters from the top of the file to better comply with:h local-additions.
-
Add
pickers.colorschemespicker. By @pkazmier, PR #1789. -
Add
workspace_symbol_livescope topickers.lsppicker. It allows searching for LSP symbols in the workspace with live feedback. Relates toworkspace_symbolscope similarly to howMiniPick.builtin.grep_live()relates toMiniPick.builtin.grep(). -
Add
<C-e>mapping forpickers.historypicker to edit commands or searches in cmdline. By @TheLeoP, PR #1960.
- Allow appending
/to a file name to mean "delete file" + "create directory". This is useful when initial intention was to create a directory but there was no/at the end.
- Ensure preview window is never hidden, even if cursor is on the line for a not (yet) existing file system entry. This reduces flickering of preview window when creating new files in Insert mode.
- Add
config.content.highlightto customize how file system entry is highlighted. Defaults to a newdefault_highlight()function.
- Add auto adjusting of highlight groups based on certain events. It can be disabled via new
autoadjustconfig setting oropts.autoadjustinapply_palette(). Affected groups:MsgSeparatordepends onmsgsepflag of 'fillchars' option.Pmenudepends on 'pumborder' option value (on Neovim>=0.12).
- Make black (0 and 8) and white (7 and 15) colors for built-in terminal different from regular background and foreground. This improves color coverage and does not affect default uncolored text (it is highlighted as
Normal).
- Add
get_palette()function.
- Trigger dedicated events during steps of jumping life cycle. See
:h MiniJump-events.
- Update
builtin_opts.word_startto use built-in notion of "keyword" (see:h 'iskeyword') when computing word start.
-
Move
gen_xxx_spotterinto separategen_spottertable for consistency with other modules:gen_pattern_spotter->gen_spotter.patterngen_union_spotter->gen_spotter.union
The
gen_xxx_spotterfunctions will work (with warning) until at least next release. -
Not focusable windows are now ignored when computing jump spots.
- Add
gen_spotter.vimpattern()that can generate spotter based on Vimscript (not Lua) pattern.
- Update
gen_integration.builtin_search()to react to change ofv:hlsearch.
-
Update
zoom()to return whether current buffer is zoomed in. By @loichyan, PR #1954. -
Add
log_add()and related functions (log_get(),log_show(),log_clear()) to work with a special in-memory log array. Useful when debugging Lua code (instead ofprint()).
- Pickers
grepandgrep_livewithrgtool now respect Neovim's'ignorecase'and'smartcase'options. This forces corresponding case matching flag (thus overriding global configuration) in favor of a more consistent user experience.
-
"Paste" action now supports special registers:
<C-w>(word at cursor),<C-a>(WORD at cursor),<C-l>(line at cursor),<C-f>(filename at cursor). -
Key query process now respects most language mappings. By @yehorb, PR #2026.
- Update
read()to write currently read session only ifMiniSessions.config.autowriteis set totrue.
-
Stop creating
update_n_linesmapping: it occupies "mapping real estate" while being rarely needed and straightforward to create manually usingMiniSurround.update_n_lines(). -
Automatically map
skey to<Nop>if the key is not already mapped and any of created mappings starts with it. This prevents accidental trigger of built-insif there is a long delay between pressing "s" and the next key.
- Update
gen_spec.inpuf.treesitter()to haveuse_nvim_treesitter = falseas default option value (instead oftrue). It used to implement more advanced behavior, but as built-invim.treesitteris capable enough, there is no need in extra dependency. The option will be removed after the release.
-
Soft deprecate
ignore_linesoption inexpect.reference_screenshot()in favor of more capableignore_textandignore_attroptions. For example,ignore_lines = { 1 }is the same as supplying bothignore_text = { 1 }andignore_attr = { 1 }.It will work at least until the next release, after which its support will be removed. Sorry for the inconvenience.
- Update
expect.reference_screenshot()to support separate ignoring of text and attribute screenshot data via newignore_textandignore_attroptions.
-
Unify behavior of floating windows:
- Truncate title/footer from left if it is too wide.
- Set default title if window is allowed to have border.
- Use single space padding for default title/footer.
- Use 'single' as default window border in modules where it can be configured. On Neovim>=0.11 also respect non-empty 'winborder' option with lower precedence than explicitly configured value for the module.
-
Unify how module-related buffers are named:
mini<module-name>://<buffer-number>/<useful-info>. This structure allows creating identifiable, reasonably unique, and useful buffer names. This is a user facing change because in some cases the shown buffer's name will change (like in statusline of opened 'mini.starter' buffer or output of:buffers!). -
Stop forcing recommended option values behind
set_vim_settingsconfig setting. Instead set them automatically insetup(). If it is not essential, do so only if it was not set by user/plugin beforehand (no matter the value). Document this as a new general principle to be followed in the future. Affected modules:- 'mini.bufremove' (do nothing as recommended 'hidden' is on by default)
- 'mini.completion' (conditionally set 'completeopt=menuone,noselect' and flags "c" in 'shortmess')
- 'mini.statusline' (do nothing as recommended 'laststatus=2' is default)
- 'mini.tabline' (unconditionally set 'showtabline=2', as it is essential to module's functinonality)
- Soft deprecate support for Neovim 0.8. It will be fully stopped in next release.
- Visual textobject selection now puts the cursor on the right edge instead of left. This better aligns with the (undocumented) behavior of how built-in
a/itextobjects work in Visual mode, as opposed to the (documented in:h operator-resulting-pos) behavior of how it is done after applying the operator.
-
Textobject identifier can now be any single character supported by
:h getcharstr(). This also makes it possible to use characters outside of Latin alphanumeric and punctuation sets ascustom_textobjectskeys. Default textobject is extended to be anything but Latin letters (to fall back to:h text-objects). -
Update
gen_spec.treesitter()to respect capture ranges specified by query directives (like(#offset! @table.inner 0 1 0 -1)).
- Update 'mini.pick' highlight groups to show prompt text with same colors as match ranges, as they are connected.
-
Add support for colored markdown headings.
-
Add new plugin integrations:
- 'ibhagwan/fzf-lua'
- 'MeanderingProgrammer/render-markdown.nvim'
- 'OXY2DEV/helpview.nvim'
- 'OXY2DEV/markview.nvim'
- Update
convert()to haveadjust_lightnessoption which can be used to disable lightness adjustment (which is enabled by default for a more uniform progression from 0 to 100). This can be useful for output to be more consistent with other Oklab/Oklch implementations.
- Update textobject to respect
ignore_blank_lineoption. Blank lines between commented lines are treated as part of a textobject.
-
Add snippet support. By default uses 'mini.snippets' to manage snippet session (if enabled, **highly recommended), falls back to
vim.snippeton Neovim>=0.10. See "Snippets" section in:h MiniCompletionfor more details.This affect existing functionality because items with
Snippetkind are no longer filtered out by default. -
Rework how LSP completion items are converted to Neovim's completion items:
- Show
detailhighlighted as buffer's language at the start of info window, but only ifdetailprovides information not already present indocumentation. It was previously used as extra text in the popup menu (viamenufield), but this doesn't quite follow LSP specification:detailanddocumentationfields can be delayed up untilcompletionItem/resolverequest which implies they should be treated similarly. - Show
labelDetailsas a part of the popup menu viamenucompletion item field.
- Show
-
Rework how information window is shown with the goal to reduce flickering during fast up/down navigation through completion candidates:
- Do not close the window immediately after the move. Instead highlight border with
MiniCompletionInfoBorderOutdatedimmediately while update window when its content is ready. Close the window only if no candidate is selected. - Show content of already visited/resolved candidate without delay.
- Show default
-No-info-text if there is no extra information about the candidate.
- Do not close the window immediately after the move. Instead highlight border with
-
Update behavior and capabilities of
default_process_items():- Add
filtersortoption to control how items are filtered and/or sorted. Its new default value has changed behavior: do fuzzy matching if 'completeopt' option contains "fuzzy" entry; same as before otherwise. - Add
kind_priorityoption to allow arranging items by completion item kind (like "Variable", "Snippet", "Text", etc.) after applyingfiltersort. This allows finer filter and/or sort based on kind, like "put Variable on top, Snippet on bottom, remove Text". - Use
filterTextandlabelitem fields during matching (instead oftextEdit.newText,insertText, andlabelas before). This is more aligned with LSP specification.
- Add
-
Prefer in some cases to use
nilas default config value with explicit fallback. This should not have any user facing effects and marked as breaking only because a structure of a default config has changed. Affected fields:lsp_completion.process_items(usedefault_process_itemsas fallback) andfallback_action(use'<C-n>'as fallback). This makes it more aligned with other modules that usually avoid using function values in default config.window.info.borderandwindow.signature.border(use non-empty 'winborder' and'single'as fallback).
-
Change default value of
MiniCompletionActiveParameterhighlight group to link toLspSignatureActiveParameter(instead of forcing underline). -
Call
lsp_completion.process_itemswith an array of items from all buffer servers at once (and not for each server separately). This can be used for more elaborate filter/sort strategies.
-
Add scrolling in info and signature window. By default can be done with
<C-f>/<C-b>when target window is shown. Can be configured viamappings.scroll_downandmappings.scroll_upconfig options. -
Respect
isIncompletein LSP completion response and immediately force new completion request on the next key press. -
Add support for context in 'textDocument/completion' request.
-
Both info and signature help windows now use tree-sitter highlighting:
- Info window uses "markdown" parser (works best on Neovim>=0.10 as its parser is built-in). Special markdown characters are concealed (i.e. hidden) which might result into seemingly unnecessary whitespace as dimensions are computed not accounting for that.
- Signature help uses same parser as in current filetype.
-
Update signature help without delay if it is already shown. This helps to keep signature help up to date after cursor jumps in Insert mode (like during snippet session).
-
Add support for item defaults in
CompletionListresponse. -
Add
get_lsp_capabilities()that returns data about which part of LSP specification is supported in 'mini.completion'. -
Input items for
lsp_completion.process_itemsnow haveclient_idfield with the identifier of the server that item came from. Usevim.lsp.get_client_by_id()to get an actual data about the server.
-
The
config.sourcecan now be array of sources, which will be attempted to attach in order. Important for source'sattachto either returnfalseor callMiniDiff.fail_attach()(even not immediately) to signal that source has failed to attach to a particular buffer. -
Overlay virtual lines now scroll horizontally along with buffer lines. Requires Neovim>=0.11 and disabled 'wrap' option.
-
Highlighting of buffer parts of change hunks can now be customized with these new highlight groups:
MiniDiffOverChangeBuf- changed buffer text. Previously usedMiniDiffOverChange(for changed reference text); links to it by default.MiniDiffOverContextBuf- context of a change shown in buffer overlay. Previously not highlighted, default highlight group is not created.
- FEATURE: improve detection and formatting for types in
@param,@return, and similar.
-
Update
process_lsp_items()to only usefilterTextandlabelitem fields during fuzzy matching (instead oftextEdit.newText,insertText, andlabelas before). This is more aligned with LSP specification. -
Treat empty
wordas matching any candidate (matched positions is empty array and score is -1). This behavior is usually more useful in practice.
- Update 'mini.pick' highlight groups to show prompt text with same colors as match ranges, as they are connected.
-
Add support for colored markdown headings.
-
Add new plugin integrations:
- 'ibhagwan/fzf-lua'
- 'MeanderingProgrammer/render-markdown.nvim'
- 'OXY2DEV/helpview.nvim'
- 'OXY2DEV/markview.nvim'
- Introduction of a new module.
-
Add
lsp_progress.leveloption to control level of LSP progress notifications. -
Add
MiniNotifyLspProgresshighlight group to be used for LSP progress notifications. -
Add
datafield to notification specification and as a new argument toMiniNotify.add(). It can be used to store any data relevant to the notification. For example, notifications frommake_notify()output setsourcefield to'vim.notify', while notifications from LSP progress setsourceto'lsp_progress'.
- Update
setup()to remap built-ingxNormal/Visual mode mappings (for opening an URI under cursor) togX(if that is not already taken).
- Update all actions to work with pairs containing multibyte characters (like "¿?", "「」", and similar).
- Rename
prompt_cursorinconfig.windowtoprompt_caretfor better naming consistency. It works for now, but will stop in the next release. Sorry for the inconvenience.
-
Add
MiniPickPromptCaretandMiniPickPromptPrefixhighlight groups to allow finer customization of picker's prompt. -
Update
get_picker_matches()to return data (items and indexes) about currently shown items. -
Update
set_picker_match_inds()to be able to set current match and marked items indexes.
- Add
start_lsp_server()to start specialized in-process LSP server to show loaded snippets inside (auto)completion engines (like 'mini.completion').
- Function
section_fileinfo()got several updates:- File size is now computed based on the current buffer text and not for file's saved version.
- File info is now shown even for buffers with empty 'filetype'. It previously was treated as a sign of a "temporary buffer", but it might be a result of an unsuccessful filetype matching.
-
Surrounding identifier can now be any single character supported by
:h getcharstr(). This also makes it possible to use characters outside of Latin alphanumeric and punctuation sets ascustom_surroundingskeys. -
Update
gen_spec.input.treesitter()to respect capture ranges specified by query directives (like(#offset! @table.inner 0 1 0 -1)).
-
Add support for showing special (truncation) characters at left and/or right if there are more tabs to the left and/or right. They are shown with the new
MiniTablineTrunchighlight group in case 'list' option is enabled (i.e. user deliberately enabled similar functionality for windows). Exact characters are taken from 'listchars' option:precedesandextendsfields. -
Labels for quickfix and location lists are now different.
- Add built-in modifier for "|" character with aligning Markdown-like tables in mind.
- Add
max_output_stepsoption togen_path.line()andgen_path.angle()to limit the number of steps the return. Default is 1000 to improve performance on large cursor jumps which also is set forconfig.cursor.path.
-
Closing and refreshing explorer now requires confirmation only if there are pending file system actions (and not in case of at least one modified buffer present).
-
Confirming file system actions in
synchronize()now can cancel synchronization (by pressingc) while keeping buffer contents the same.synchronize()also returns a boolean representing whether synchronization was done.
- Git data is computed after resolving symlinks. This allows working with files symlinked into outside of Git repo. This behavior is the same as in 'mini.diff'.
- Make
MiniHipatterns{Fixme,Hack,Todo,Note}highlight groups by default be reverse and bold variant ofDiagnostic{Error,Warn,Info,Hint}group instead of directly link to them. This ensures better visibility for color schemes which don't have explicit 'mini.hipatterns' support.
- Add
'lowmedium'and'mediumhigh'saturation levels.
- Add distinctive glyphs and highlighting for special Neovim directories (from
:h 'runtimepath').
-
Add
options.n_linesoption to limit the scope computation (for better performance). It's default value is 10000 while previous behavior behavior had no restriction (as withn_lines = math.huge) which should matter only in very big scopes. -
Add
draw.predicateconfiguration to customize whether the scope should be autodrawn. It's default value does not draw scope with incomplete computation (i.e. interrupted due tooptions.n_linesvalue), which should matter only in very big scopes.