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.
This commit is contained in:
Gregory Anders 2023-11-28 17:02:44 -06:00 committed by GitHub
parent aa9d9cafd0
commit a9b4dc9614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,