github echasnovski/mini.nvim v0.8.0
Version 0.8.0

latest releases: v0.14.0, v0.13.0, v0.12.0...
19 months ago
  • 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

mini.bracketed

Introduction of a new module.

mini.comment

  • FEATURE: Add options.start_of_line option which controls whether to recognize as comment only lines without indent.
  • FEATURE: Add options.ignore_blank_line option which controls whether to ignore blank lines.
  • FEATURE: Add options.pad_comment_parts option which controls whether to ensure single space pad for comment leaders.

mini.doc

  • FEATURE: Add config.hooks.write_pre hook to be executed before writing to a file.

mini.indentscope

  • FEATURE: Add MiniIndentscopeSymbolOff highlight group to be used if scope's indent is not multiple of 'shiftwidth'.
  • FEATURE: Add draw.priority option to control priority of scope line draw.

mini.jump2d

  • FEATURE: Add view.n_steps_ahead option which controls how many steps ahead to show. Appearance is controlled by new MiniJump2dSpotAhead highlight group.
  • FEATURE: Add view.dim option which controls whether to dim lines with at least one jump spot. Appearance is controlled by new MiniJump2dDim highlight group.
  • FEATURE: Add MiniJump2dSpotUnique highlight group to be used for spots with unique label for next step.

mini.pairs

  • FEATURE: Both MiniPairs.br() and MiniPairs.cr() can now take a key which will be used instead of default <BS> and <CR>.

mini.sessions

  • FEATURE: setup() now creates global directory at path config.directory if it doesn't exist.
  • All actions now keep list of detected sessions up to date.

mini.splitjoin

Introduction of a new module.

mini.surround

  • FEATURE: Add respect_selection_type option 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.

Don't miss a new mini.nvim release

NewReleases is sending notifications on new releases.