aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/man.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-11-28 17:02:44 -0600
committerGitHub <noreply@github.com>2023-11-28 17:02:44 -0600
commita9b4dc9614a0e49438a1a1569a5c0319aa2cac9d (patch)
tree381c83610925bd0dcd5a85c16171c2bf9f405144 /runtime/plugin/man.lua
parentaa9d9cafd0da58745178fa5a9b0773dcce96f30e (diff)
downloadrneovim-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.
Diffstat (limited to 'runtime/plugin/man.lua')
-rw-r--r--runtime/plugin/man.lua1
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,