From a9b4dc9614a0e49438a1a1569a5c0319aa2cac9d Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Tue, 28 Nov 2023 17:02:44 -0600 Subject: [PATCH] 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. --- runtime/plugin/man.lua | 1 + 1 file changed, 1 insertion(+) 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,