Skip to content

Commit d12b7c1

Browse files
committed
docs(notify): adjust documentation about preserving vim.notify
Related to #1999.
1 parent 21a7923 commit d12b7c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/mini-notify.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Features:
1212
- Manage notifications (add, update, remove, clear).
1313

1414
- Custom |vim.notify()| implementation. To adjust, use |MiniNotify.make_notify()|
15-
after calling |MiniNotify.setup()|.
15+
or save-restore `vim.notify` manually after calling |MiniNotify.setup()|.
1616

1717
- Automated show of LSP progress report.
1818

@@ -259,7 +259,7 @@ call manually after `setup()`. For example, to show errors longer: >lua
259259
require('mini.notify').setup()
260260
vim.notify = MiniNotify.make_notify({ ERROR = { duration = 10000 } })
261261
<
262-
To preserve default `vim.notify`: >lua
262+
To preserve original `vim.notify`: >lua
263263

264264
local notify_orig = vim.notify
265265
require('mini.notify').setup()

lua/mini/notify.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
--- - Manage notifications (add, update, remove, clear).
1313
---
1414
--- - Custom |vim.notify()| implementation. To adjust, use |MiniNotify.make_notify()|
15-
--- after calling |MiniNotify.setup()|.
15+
--- or save-restore `vim.notify` manually after calling |MiniNotify.setup()|.
1616
---
1717
--- - Automated show of LSP progress report.
1818
---
@@ -278,7 +278,7 @@ MiniNotify.config = {
278278
--- require('mini.notify').setup()
279279
--- vim.notify = MiniNotify.make_notify({ ERROR = { duration = 10000 } })
280280
--- <
281-
--- To preserve default `vim.notify`: >lua
281+
--- To preserve original `vim.notify`: >lua
282282
---
283283
--- local notify_orig = vim.notify
284284
--- require('mini.notify').setup()

0 commit comments

Comments
 (0)