diff options
| author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-11-28 17:02:44 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-28 17:02:44 -0600 |
| commit | a9b4dc9614a0e49438a1a1569a5c0319aa2cac9d (patch) | |
| tree | 381c83610925bd0dcd5a85c16171c2bf9f405144 | |
| parent | aa9d9cafd0da58745178fa5a9b0773dcce96f30e (diff) | |
| download | rneovim-a9b4dc9614a0e49438a1a1569a5c0319aa2cac9d.tar.gz rneovim-a9b4dc9614a0e49438a1a1569a5c0319aa2cac9d.tar.bz2 rneovim-a9b4dc9614a0e49438a1a1569a5c0319aa2cac9d.zip | |
fix(man): set the nested flag for the BufReadCmd autocommand (#26285)
The nested flag must be set so that other autocommands can fire while
the BufReadCmd is still executing.
| -rw-r--r-- | runtime/plugin/man.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/plugin/man.lua b/runtime/plugin/man.lua index 50a48fe7f2..512b1f63e8 100644 --- a/runtime/plugin/man.lua +++ b/runtime/plugin/man.lua @@ -29,6 +29,7 @@ local augroup = vim.api.nvim_create_augroup('man', {}) vim.api.nvim_create_autocmd('BufReadCmd', { group = augroup, pattern = 'man://*', + nested = true, callback = function(params) require('man').read_page(vim.fn.matchstr(params.match, 'man://\\zs.*')) end, |