diff --git a/lua/fzf-lua/providers/nvim.lua b/lua/fzf-lua/providers/nvim.lua index baaebf0d..9391ba5e 100644 --- a/lua/fzf-lua/providers/nvim.lua +++ b/lua/fzf-lua/providers/nvim.lua @@ -25,7 +25,10 @@ M.commands = function(opts) if cmd then builtin_commands[cmd] = desc end cmd, desc = line:match("^|:(%S+)|%s*%S+%s*(.*%S)") elseif cmd then -- found - if line:match("^%s%+%S") then desc = desc .. (line:match("^%s*(.*%S)") or "") end + if line:match("^%s+%S") then + local desc_continue = line:match("^%s*(.*%S)") + desc = desc .. (desc_continue and " " .. desc_continue or "") + end if line:match("^%s*$") then break end end end