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.
-
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.
- 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.
- Add
MiniCompletionWindowOpenandMiniCompletionWindowUpdateevents.
- Add
gen_clues.square_bracketsto generate clues for[and]keys. By @TheLeoP, PR #1937.
- Add support for working with files containing BOM bytes.
-
Add
pickers.colorschemespicker. By @pkazmier, PR #1789. -
Add
<C-e>mapping forpickers.historypicker to edit commands or searches in cmdline. By @TheLeoP, PR #1960.
- 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.
- 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
zoom()to return whether current buffer is zoomed in. By @loichyan, PR #1954.
- "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).
- Update
read()to write currently read session only ifMiniSessions.config.autowriteis set totrue.
- 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 withSnippetkind 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.
- FEATURE:
setup()now also can be used to clean history (for example, likeMiniNotify.setup(MiniNotify.config)).
- Picker window now has local current directory set to source's
cwd. This allows easier code for "in window" functions (callable items, choose, preview, etc.) as relative paths will be properly resolved. It also results in some changes:- Calling
set_picker_items_from_cli()with active picker now resolves explicitly set to relative pathspawn_opts.cwdagainst picker'scwd(and not against global current directory as was done previously).
- Calling
-
Update
grepandgrep_livepickers to allowglobslocal option which restricts search to files that match any of its glob patterns (for example,{ '*.lua', 'lua/**' }will only search in Lua files and files in 'lua' directory). Thegrep_livepicker also has custom<C-o>mapping to add globs interactively after picker is opened. -
Update
helppicker to havedefault_splitlocal option which customizes split direction ofchooseaction (<CR>by default). -
Update
ui_select()to allow fourth argumentstart_optsto customizeMiniPick.start()call. -
Add
MiniPickMatchevent triggered after updating query matches or setting items. Can be used, for example, to adjust window height based on current matches.
- Introduction of a new module.
- Created mappings for
find,find_left, andhighlightare now not dot-repeatable. Dot-repeat should repeat last text change but neither of those actions change text. Having them dot-repeatable breaks the common "move cursor -> press dot" workflow. Initially making them dot-repeatable was a "you can but you should not" type of mistake.
- Now calling
skip()in set'spre_casehook results in skipping all test cases in a set. Calling in other hooks has no effect. This enables a more structured skipping of all test cases inside a set. To skip inside hooks, useadd_note()followed byreturn.
-
Add
n_retrytest set property. When set, each case will be tried that at most that many times until first success (if any). -
Add
hooks.pre_sourceandhooks.post_sourcefields to collected cases. They can be either'once'or'case'and allow a more granular control over case execution. -
Function
finally()now can be called several times inside a single function with callbacks executed in order of how they were registered. -
Update
expect.reference_screenshot()to allowdirectoryoption pointing to a directory where automatically constructed reference path is located.
-
Update help files to use code blocks with language annotation, as it results in a better code highlighting. Implies enabled tree-sitter highlighting in 'help' filetype:
- It is default in Neovim>=0.10.
- Tree-sitter parser is built-in in Neovim 0.9.x, needs manual enabling via
vim.treesitter.start(). - Has visual regressions on Neovim 0.8.0 and 0.8.1 without enabled tree-sitter (code blocks are highlighted as normal text). Use 0.8.2 or newer.
-
Universally prefer 'mini.icons' module over 'nvim-tree/nvim-web-devicons'.
- Stop official support of Neovim 0.7.
-
Start automated testing on Windows and MacOS.
-
Universally ensure that all plugin's highlight groups are defined after any color scheme takes effect.
- Add 'kevinhwang91/nvim-bqf' plugin integration.
- Add highlighting of LSP kind (like "Function", "Keyword", etc.). Works only on Neovim>=0.11. Requires enabled 'mini.icons' to work out of the box.
- Update
afterlines_to_code()to result into Lua code block in help file by using>luaat the start instead of>. NOTE: users need enabledhelptree-sitter parser (which is default on Neovim>=0.9) for code blocks to have proper highlighting.
- Use "│" as line/position separator instead of ":". This aligns with changes in 'mini.pick' and makes line/position more easily visible.
-
Update
oldfilespicker to havecurrent_diroption which iftrueshows files only from picker's working directory. By @abeldekat, PR #997. -
Update
git_hunks,list, andlsppickers to show icons. Scopesdocument_symbolandworkspace_symbolinlsppicker show icon based on LSP kind (requires set up 'mini.icons'), others - based on path data. -
Update
buf_linesandoldfilespickers to havepreserve_orderlocal option, similar tovisit_pathspicker. Other possible candidates for this option are intentionally not updated to not increase maintenance (manually overridematchsource method to callMiniPick.default_match()with{ preserve_order = true }options). -
Update
buf_linespicker to pad line numbers to achieve more aligned look.
-
Update
show_at_cursor()to include commit's statistics when showing commit. -
Update
show_at_cursor()to show relevant at cursor commit data inside 'mini.deps' confirmation buffer.
- Update
compute_hex_color_group()to compute based on combination ofhex_colorandstyle, opposed to justhex_color. This allows simultaneous usage of several styles in user's custom highlighters.
-
Implement
apply_palette()(to complimentmake_palette()) providing a way to tweak applied palette before applying it. -
Add 'kevinhwang91/nvim-bqf' plugin integration.
-
Update how confirmation lines are computed:
- Show create actions in the group directory where text manipulation took place. This matters during creating nested entries and is usually a more intuitive representation.
- For delete show its type after the file name ("permanently" or "to trash") as an additional visual indication of delete type.
- For create, copy and move prefer showing its "to" path relative to group directory.
- Separate action name and paths with "│" (instead of ":") for better visual separation.
- Don't enclose paths in quotes. Initially it was done to reliably show possible whitespace in paths, but inferring it from overall line structure should be good enough.
-
Soft deprecate
get_target_window()in favor ofget_explorer_state().target_window. Will be completely removed after the next release.
-
Prefer using 'mini.icons' as icon provider.
-
Implement bookmarks. With default config:
- Type
mfollowed by a single character<char>to set directory path of focused window as a bookmark with id<char>. - Type
'followed by a bookmark id to make bookmark's path focused in explorer. - Use
MiniFiles.set_bookmark()insideMiniFilesExplorerOpenevent to set custom bookmarks.
- Type
-
Make data for
MiniFilesActionDeletecontaintofield in case of not permanent delete. -
Make file manipulation work better for special complex/overlapping cases (like delete 'file-a' and copy 'file-b' as 'file-a'). It is still a better idea to split overlapping manipulations into smaller and not related steps, as there are cases which won't work.
-
Add
get_explorer_state()to allow more reliable user customizations. -
Add
set_branch()to allow to set what paths should be displayed and focused.
- Introduction of a new module.
- Implement
setup_termbg_sync()to set up terminal background synchronization (removes possible "frame" around current Neovim instance). Works only on Neovim>=0.10.
-
Update
default_match()to have tableoptsas fourth argument (instead of booleando_sync). Use{ sync = true }to run synchronously. The new design is more aligned with other functions and is more forward compatible. -
Encoding line or position in string items has changed:
- Use "\0" (null character; use "\000" form if it is in a string before digit) instead of ":" as delimiter. This makes it work with files similar to ":" position encoding (like "time_12:34:56"). This only matters for custom sources which provide line or position in string items.
- Update
default_show()to display "│" character instead of "\0" in item's string representation (previously was ":"). In particular, this changes how line/position is displayed ingrepandgrep_livebuilt-in pickers. This change was done because "│" is more visible as separator.
-
Prefer using 'mini.icons' as icon provider.
-
Add
preserve_orderoption todefault_match()to allow asynchronous matching which preserves order (i.e. doesn't do sort step of fuzzy matching). -
Explicitly hide cursor when picker is active (instead of putting it in command line).
- Change filetype of Starter buffer from 'starter' to 'ministarter'. This is a more robust value and more aligned with other modules.
-
Update
section_fileinfo()to show non-empty filetype even in not normal buffers (like plugin's scratch buffers, help, quickfix, etc.). Previously it showed nothing, which was a mistake as filetype can be a valuable information. -
The default
set_vim_settingsconfig value now does not affectlaststatus = 3(aka global statusline).
- Prefer using 'mini.icons' as icon provider for
section_fileinfo().
- Adding surrounding in linewise mode now also ignores trailing whitespace on the last line (same as it ignores indent on the first line).
- Prefer using 'mini.icons' as icon provider.
- Make it work on Windows. By @cameronr, PR #1101.
-
Blank lines are now completely ignored when deciding the toggling action. In practice this means that if target block consists only from commented and/or blank lines, it will be uncommented rather than commented.
-
Whitespace in comment parts is now treated more explicitly. In particular:
-
Default
options.pad_comment_parts = truenow more explicitly means that any value of 'commentstring' is transformed so that comment parts have exactly single space inner padding.Example: any
/*%s*/,/* %s */, or/* %s */is equivalent to having/* %s */. -
Detection of whether consecutive lines are commented or not does not depend on whitespace in comment parts. Uncommenting is first attempted with exact comment parts and falls back on trying its trimmed parts.
Example of toggling comment on single line with
/* %s */'commentstring' value:/* this is commented */->this is commented./*this is also commented */->this is also commented(notice trailing space).
-
Commenting blank lines is done with trimmed comments parts, while uncommenting explicitly results into empty lines.
-
- Support dot-repeat after initial commenting is done for visual selection; repeating is done for same relative range.
- Add
MiniDepsMsgBreakinghighlight group for messages indicating a breaking change in a conventional commit style.
- Introduction of a new module.
- Add new
MiniFilesExplorerOpenandMiniFilesExplorerCloseevents.
- Introduction of a new module.
- Update some highlight groups for better usability:
DiffChangeandDiffText- make changed diff lines have colored background.Folded- make folds differ fromCursorLine.QuickFixLine- make current quickfix item differ fromCursorLine.
- Add
gen_integration.diff()which highlights general diff hunks from 'mini.diff'.
-
Stop trying to parse path for special format ("path:row" and "path:row:col") if supplied inside a table item. This made impossible working with paths containing ":".
-
Update
builtin.files()to use table items when string item might be ambiguous.
- Respect general URI format for paths inside table items.
- Explicitly block all events in
open()during startup for a better performance.
-
Update
section_git()to prefer using data from 'mini.git' with fallback on pure HEAD data from 'lewis6991/gistigns.nvim'. -
Update default active content:
- Add
section_diff()(shows diff data near icon) following refactor ofsection_git(). - Add
section_lsp()(shows number of attached LSP servers near icon) following refactor ofsection_diagnostics().
- Add
- Update
section_diagnostics()to depend only on defined diagnostic. This means:- Something is shown only if there is any diagnostic actually present in the buffer. No diagnostic entries - nothing is shown. Previously it did not show if there was no LSP servers attached (as initially diagnostics came only from LSP) or buffer was not normal.
- Fallback icon is "Diag" instead of "LSP".
-
Update
section_diagnostics()to supportsignstable option to customize signs for severity levels. -
Add
section_diff()to show data from 'mini.diff' with fallback on diff data from 'lewis6991/gistigns.nvim'. -
Add
section_lsp()to show indicator of LSP servers attached to the buffer.
- Implement
config.formatfor custom label formatting.
- Child process is now created with extra
--headless --cmd "set lines=24 columns=80"arguments making it headless but still reasonably similar to fully functioning Neovim during interactive usage. This change should generally not break a lot of things, while enabling a faster and more robust test execution.
-
Remove
<C-z>mapping, as it is more useful in most terminal emulators for suspending Neovim process (to later resume withfgcommand). To correct latest misspelled word, use mappings like this:vim.keymap.set('n', '<C-z>', '[s1z=', { desc = 'Correct latest misspelled word' }) vim.keymap.set('i', '<C-z>', '<C-g>u<Esc>[s1z=`]a<C-g>u', { desc = 'Correct latest misspelled word' })
-
Add
tab:>to 'listchars' option whenoptions.extra_uiis set. This prevents showing^Iinstead of a tab and actual value comes from Neovim's default. -
Set
termguicolorsonly on Neovim<0.10, as later versions should have it on by default (if terminal emulator supports it).
- Hooks are now called with data about commenting action.
- Introduction of a new module.
-
Stop using
:echoto display messages and warnings in favor ofvim.notify(). -
Update default
write_posthook to not display current time in success message. -
Update to include space before
~in generated section headings.
-
Update
go_in()to haveclose_on_fileoption. -
Show warning if action is set to override existing path.
- Update verbatim text (
@text.literaland@markup.raw) color to be distinctive instead of dimmed.
- Add support for new standard tree-sitter captures on Neovim>=0.10 (see neovim/neovim#27067).
- Update
bench_time()to usevim.loop.hrtime()(as better designed for benchmarking) instead ofvim.loop.gettimeofday().
- Introduction of a new module.
-
Implement
window.prompt_cursorandwindow.prompt_prefixconfig options. -
Update
builtin.help()to use tree-sitter highlighting (if there is any).
- Update
read()to firstwrite()current session (if there is any).
- Add
sections.pick()with 'mini.pick' pickers.
- Add
search_countsection to default active content.
- Introduction of a new module.
- Stop supporting deprecated 'HiPhish/nvim-ts-rainbow2'.
- Applying
delete()andwipeout()withoutforcein a modified buffer now asks for confirmation instead of declining and showing message.
- Value of
config.window.confignow can be callable returning window config.
- Implement
config.mappings.comment_visualto configure mapped keys in Visual mode.
- Start adding
Cflag toshortmessoption on Neovim>=0.9. By @yamin-shihab, PR #554.
- Introduction of a new module.
-
Opening file which is present in unlisted buffer now makes the buffer listed.
-
Highlight in preview now is not enabled if file is sufficiently large.
-
Explorer now tracks if focus is lost and properly closes on detection.
-
Implement
MiniFilesCursorLinehighlight group.
- Field
priorityin highlighter definitions is soft deprecated in favor ofextmark_opts = { priority = <value> }.
-
Allow
patternin highlighter definitions to be an array to highlight several patterns under the same highlighter name. -
Implement
extmark_optsin highlighter definitions for a more control over extmarks placed at matches. -
Update
compute_hex_color_group()to allowstyle = 'fg'. -
Update
gen_highlighter.hex_color()to allowstyle = 'inline'(requires Neovim>=0.10 with support of inline extmarks). -
Implement
get_matches()to get buffer matches.
- Stop supporting deprecated 'HiPhish/nvim-ts-rainbow2'.
- Implement
config.window.zindexto configure z-index of map window.
- Update
setup_auto_root()andfind_root()to now havefallbackargument to be applied when no root is found withvim.fn.find().
- Introduction of a new module.
- Value of
show_pathinsections.recent_files()can now be callable for more control on how full path is displayed.
- Update
child.get_screenshot()to now by default call:redrawprior to computing screenshot. Can be disabled by newopts.redrawargument.
- Error in any "pre" hook now leads to test case not being executed (with note).
-
New method
child.lua_func()can execute simple functions inside child process and return the result (stasjok, #437). -
Update
expect.reference_screenshot()to now haveignore_linesoption allowing to ignore specified lines during screenshot compare.
- Allow
vis_modefield in custom texobject region to force Visual mode with which textobject is selected.
- Add
MiniAnimateNormalFloathighlight group to tweak highlighting ofopenandcloseanimations.
- Add 'HiPhish/rainbow-delimiters.nvim' integration.
- Remove
<C-w>mapping in Terminal mode, as it is more useful inside terminal emulator itself.
- Add
add_to_jumplistoption to relevant targets (which move cursor and don't already add to jumplist).
- Create normal buffer instead of scratch when there is no reasonable target to focus (#394).
- Introduction of a new module.
- Introduction of a new module.
- Add 'HiPhish/rainbow-delimiters.nvim' integration.
- Add
gen_union_spotter()to allow combining separate spotters into one.
- Introduction of a new module.
- Allow
falseinconfig.mappingsto not map the key.
- Update
add(sa) with ability to replicate left and right parts by respecting[count]. In Normal mode two kinds of[count]is respected: one for operator (replicates left and right parts) and one for textobject/motion. In Visual mode[count]replicates parts.
-
Use Lua API to create autocommands. Stop exporting functions only related to autocommands.
-
Use
vim.keymapto deal with mappings. Stop exporting functions only related to mappings.
- Stop official support of Neovim 0.6.
- Add 'randomhue' color scheme.
- Stop supporting archived 'p00f/nvim-ts-rainbow' in favor of 'HiPhish/nvim-ts-rainbow2'.
- Add new integrations:
- Lsp semantic tokens.
- 'folke/lazy.nvim'.
- 'folke/noice.nvim'.
- 'kevinhwang91/nvim-ufo'.
- Add dot-repeat support for adding empty lines (
goandgOmappings).
- Introduction of a new module.
-
Use tree-sitter information about locally active language to infer 'commentstring' option value.
-
Add
options.custom_commentstringoption for a more granular customization of comment structure. -
Add
get_commentstring()function representing built-in logic of computing relevant 'commentstring'.
- Introduction of a new module.
- Introduction of a new module.
- Add and implement design principle for silencing module by setting
config.silent = true. It is now present in modules capable of showing non-error feedback:- mini.ai
- mini.align
- mini.basics
- mini.bufremove
- mini.doc
- mini.jump
- mini.jump2d
- mini.starter
- mini.surround
- mini.test
- Introduction of a new module.
-
Add
options.start_of_lineoption which controls whether to recognize as comment only lines without indent. -
Add
options.ignore_blank_lineoption which controls whether to ignore blank lines. -
Add
options.pad_comment_partsoption which controls whether to ensure single space pad for comment leaders.
- Add
config.hooks.write_prehook to be executed before writing to a file.
-
Add
MiniIndentscopeSymbolOffhighlight group to be used if scope's indent is not multiple of 'shiftwidth'. -
Add
draw.priorityoption to control priority of scope line draw.
-
Add
view.n_steps_aheadoption which controls how many steps ahead to show. Appearance is controlled by newMiniJump2dSpotAheadhighlight group. -
Add
view.dimoption which controls whether to dim lines with at least one jump spot. Appearance is controlled by newMiniJump2dDimhighlight group. -
Add
MiniJump2dSpotUniquehighlight group to be used for spots with unique label for next step.
- Both
MiniPairs.br()andMiniPairs.cr()can now take a key which will be used instead of default<BS>and<CR>.
-
Update
setup()to now create global directory at pathconfig.directoryif it doesn't exist. -
All actions now keep list of detected sessions up to date.
- Introduction of a new module.
- Add
respect_selection_typeoption which, when enabled, makes adding and deleting surrounding respect selection type:- Linewise adding places surrounding parts on separate lines while indenting surrounded lines once.
- Deleting surrounding which looks like a result of linewise adding will act to revert it: delete lines with surrounding parts and dedent surrounded lines once.
- Blockwise adding places surrounding parts on whole edges, not only start and end of selection.
- Start dual distribution. Every module is now distributed both as part of 'mini.nvim' library and as standalone plugin (in separate git repository).
- In
MiniAi.gen_spec.argument()optionseparators(plural; array of characters) is soft deprecated in favor ofseparator(singular; Lua pattern) option.
- Introduction of a new module.
- Introduction of a new module.
- Rename
MiniCompletion.config.window_dimensionstoMiniCompletion.config.windowto be able to handle more general configuration.
- Add
MiniCompletion.config.window.info.borderandMiniCompletion.config.window.signature.borderwhich can be used to define border of info and signature floating windows respectively.
-
Stop using (deprecate)
MiniIndentscopePrefixhighlight groups. It was initially introduced as a way to properly show scope indicator on empty lines. It had a drawback of overshadowing 'listchars' symbols (see #125) and vertical guides from 'lukas-reineke/indent-blankline.nvim'. As the other implementation approach was found by @mivort (see #161),MiniIndentscopePrefixis no longer needed and no overshadowing is done. -
Update
MiniIndentscope.gen_animationto now be a table (for consistency with othergen_*functions in 'mini.nvim'). See "Migrate from function type" section of:h MiniIndentscope.gen_animation. Calling it as function will be available until next release.
-
Add
MiniMisc.setup_auto_root()andMiniMisc.find_root()for root finding functionality. NOTE: requires Neovim>=0.8. -
Add
MiniMisc.setup_restore_cursor()for automatically restoring latest cursor position on file reopen. By @cryptomilk, PR #198.
- Introduction of a new module.
- Stop official support of Neovim 0.5.
- Make all messages use colors and not cause hit-enter-prompt.
- Introduction of a new module.
-
Change some 'mini.nvim' highlights:
MiniCompletionActiveParameternow highlights with background instead of underline.MiniJump2dSpotnow explicitly defined to use plugin's palette.MiniStarterItemPrefixandMiniStarterQueryare now bold for better visibility.
-
Update highlight for changed git diff to be more visible and to comply more with general guidelines.
-
Add support for many plugin integrations.
-
Implement
MiniBase16.config.pluginsfor configuring plugin integrations.
- Allow cursor to be positioned past the end of previous/current line (#113).
- Introduction of a new module.
-
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.
-
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:
bfor "brackets". Input - any of balanced(),[]{}. Output -().qfor "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
-
Implement "last"/"next" extended mappings which force
'prev'or'next'search method. Controlled withconfig.mappings.suffix_lastandconfig.mappings.suffix_nextrespectively. 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.
- Implement
MiniSurround.gen_specwith generators of common surrounding specifications (likeMiniSurround.gen_spec.input.treesitterfor tree-sitter based input surrounding).
- Update all tests to use new 'mini.test' module.
-
Implement buffer local configuration. This is done with
vim.b.mini*_configbuffer variables. -
Add new
minicyancolor scheme.
- Introduction of a new module.
- Now hooks can be used to terminate further actions by returning
false(#108).
- Soft deprecate
vim.b.miniindentscope_optionsin favor of usingoptionsfield ofminiindentscope_config.
- Hooks are now called with active session data as argument.
- Deprecate
MiniStarter.contentin favor ofMiniStarter.get_content().
-
Make it possible to open multiple Starter buffers at the same time (#82).
-
All functions dealing with Starter buffer now have
buf_idas argument.
- Implement
config.use_iconswhich controls whether to use icons by default.
- Introduction of a new module.
- Implement
MiniTrailspace.trim_last_lines().
-
Update all modules to supply mapping description for Neovim>=0.7.
-
Cover all modules with extensive tests.
- Implement
config.hookswithpreandposthooks (executed before and after successful commenting). Fixes #50, #59.
- Implement support for
additionalTextEdits(issue #61).
- Soft deprecate
config.highlight_delayin favor ofconfig.delay.highlight.
-
Implement idle timeout to stop jumping automatically (@annenpolka, #56).
-
Implement
MiniJump.state: table with useful model-related information. -
Update process of querying target symbol: show help message after delay, allow
<C-c>to stop selecting target.
- Introduction of a new module.
- Create mappings for
<BS>and<CR>in certain mode only after some pair is registered in that mode.
- All feedback about incorrect behavior is now an error instead of message notifications.
-
Implement
MiniSessions.select()to select session interactively and perform action on it. -
Implement
config.hooksto execute hook functions before and after successful action.
-
Allow
config.headerandconfig.footerbe any value, which will be converted to string viatostring(). -
Update query logic to not allow queries which result into no items.
-
Add
<C-n>and<C-p>to default mappings.
- Change default icon for
MiniStatusline.section_diagnostics()from ﯭ to due to former having issues in some terminal emulators.
-
Deprecate
config.funname_patternoption in favor of manually modifyingfsurrounding. -
Always move cursor to the right of left surrounding in
add(),delete(), andreplace()(instead of moving only if it was on the same line as left surrounding).
-
Implement
config.search_method. -
Implement custom surroundings via
config.custom_surroundings. -
Implement
MiniSurround.user_input(). -
Update process of getting user input: allow
<C-c>to cancel and make empty string a valid input.
- Show listed buffers also in case of multiple tabpages (instead of using builtin behavior).
-
Implement
config.tabpage_section. -
Show quickfix/loclist buffers with special
*quickfix*label.
- Update all modules to have annotations formatted for 'mini.doc'.
- Current word under cursor now can be highlighted differently.
- Introduction of a new module.
- Introduction of a new module.
- Implement
MiniStarter.set_query()and make<Esc>mapping for resetting query.
- Use new
Diagnostic*highlight groups in Neovim 0.6.0.
- Respect tab indentation (#20).
- Introduction of a new module.
- Implement pair registration with custom mapping functions:
- Implement
MiniPairs.map(),MiniPairs.map_buf(),MiniPairs.unmap(),MiniPairs.unmap_buf()to (un)make mappings for pairs which automatically register them for<BS>and<CR>. Note, that this has a minor break of previous behavior: nowMiniPairs.bs()andMiniPairs.cr()don't have any input argument. But default behavior didn't change. - Allow setting global pair mappings inside
configofMiniPairs.setup().
- Implement
- Introduction of a new module.
- Introduction of a new module.
-
Implement new section
MiniStatusline.section_searchcount(). -
Update
section_diagnosticsto usevim.diagnosticin Neovim 0.6.0.
- Initial stable version.