From 379e281ecd0f65667dbe35c43d2ff724234adc1b Mon Sep 17 00:00:00 2001 From: Barrett Ruth <62671086+barrettruth@users.noreply.github.com> Date: Wed, 25 Feb 2026 13:40:36 -0500 Subject: [PATCH] fix(plugin): allow command chaining with bar separator (#29) Problem: :Pending|only failed because the command definition lacked the bar attribute, causing | to be consumed as an argument. Solution: Add bar = true to nvim_create_user_command so | is treated as a command separator, matching fugitive's :Git behavior. --- plugin/pending.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/pending.lua b/plugin/pending.lua index 2f3a38f..bfacfec 100644 --- a/plugin/pending.lua +++ b/plugin/pending.lua @@ -6,6 +6,7 @@ vim.g.loaded_pending = true vim.api.nvim_create_user_command('Pending', function(opts) require('pending').command(opts.args) end, { + bar = true, nargs = '*', complete = function(arg_lead, cmd_line) local subcmds = { 'add', 'sync', 'archive', 'due', 'undo' }