Skip to content

Commit 6c7e958

Browse files
committed
feat(mini.nvim): sync to 6acb626
1 parent 944ecbb commit 6c7e958

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

mini.nvim/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ There are following change types:
1010

1111
# Version 0.18.0-dev {#v0.18.0}
1212

13+
## mini.misc {#v0.18.0-mini.misc}
14+
15+
### Evolve {#v0.18.0-mini.misc-evolve}
16+
17+
- 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 (like `tmux`).
18+
19+
The previous "reset by explicitly setting initial background color" behavior is available by setting the new `opts.explicit_reset` option to `true`.
20+
1321

1422
# Version 0.17.0 {#v0.17.0}
1523

mini.nvim/doc/mini-clue.qmd

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,8 @@ In this module submode can be implemented following these steps:
468468
back to being inside submode).
469469

470470

471-
- Register submode prefix (or some of its starting part) as trigger.
471+
- Register submode prefix (or some of its starting part) as trigger. Do not
472+
register "overlapping" triggers, like `<Leader>` and `<Leader>m`.
472473

473474
##### Submode examples {#miniclue-examples-submodes-submodeexamples}
474475

@@ -500,10 +501,14 @@ In this module submode can be implemented following these steps:
500501

501502
require('mini.clue').setup({
502503
triggers = {
503-
{ mode = 'n', keys = '<Leader>m' },
504-
{ mode = 'x', keys = '<Leader>m' },
504+
-- This can also set up directly `<Leader>m` as a trigger, but make
505+
-- sure to not also use `<Leader>`, as they would "overlap"
506+
{ mode = 'n', keys = '<Leader>' },
507+
{ mode = 'x', keys = '<Leader>' },
505508
},
506509
clues = {
510+
{ mode = 'n', keys = '<Leader>m', desc = '+Move' },
511+
507512
{ mode = 'n', keys = '<Leader>mh', postkeys = '<Leader>m' },
508513
{ mode = 'n', keys = '<Leader>mj', postkeys = '<Leader>m' },
509514
{ mode = 'n', keys = '<Leader>mk', postkeys = '<Leader>m' },

mini.nvim/doc/mini-misc.qmd

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Notes:
362362

363363
### setup_termbg_sync() {#minimisc.setup_termbg_sync .help-syntax-right-anchor}
364364

365-
<p align="center">`MiniMisc.setup_termbg_sync`()</p>
365+
<p align="center">`MiniMisc.setup_termbg_sync`(<span class="help-syntax-special">{opts}</span>)</p>
366366
Set up terminal background synchronization
367367

368368
What it does:
@@ -374,8 +374,7 @@ What it does:
374374
change terminal background to have same color as [guibg](https://neovim.io/doc/user/helptag.html?tag=guibg) of [hl-Normal](https://neovim.io/doc/user/helptag.html?tag=hl-Normal).
375375

376376
- Creates autocommands for [VimLeavePre](https://neovim.io/doc/user/helptag.html?tag=VimLeavePre) and [VimSuspend](https://neovim.io/doc/user/helptag.html?tag=VimSuspend) events which set
377-
terminal background back to the color at the time this function was
378-
called first time in current session.
377+
terminal background back to its original color.
379378

380379
- Synchronizes background immediately to allow not depend on loading order.
381380

@@ -385,6 +384,17 @@ used by terminal emulator itself.
385384

386385
Works only on Neovim>=0.10.
387386

387+
#### Parameters {#minimisc.setup_termbg_sync-parameters}
388+
389+
390+
391+
<span class="help-syntax-special">{opts}</span> `(table|nil)` Options. Possible fields:
392+
393+
- <span class="help-syntax-keys">\<explicit_reset\></span> `(boolean)` - whether to reset terminal background by
394+
explicitly setting it to the color it had when this function was called.
395+
Set to `true` if terminal emulator doesn't support OSC 111 control sequence.
396+
Default: `false`.
397+
388398
---
389399

390400
### setup_restore_cursor() {#minimisc.setup_restore_cursor .help-syntax-right-anchor}

mini.nvim/doc/mini-statusline.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Highlight used in default statusline:
9292

9393
Other groups:
9494

95-
- `MiniStatuslineInactive` - highliting in not focused window.
95+
- `MiniStatuslineInactive` - highlighting in not focused window.
9696

9797
To change any highlight group, set it directly with [nvim\_set\_hl()](https://neovim.io/doc/user/helptag.html?tag=nvim_set_hl\(\)).
9898

0 commit comments

Comments
 (0)