Skip to content

Commit c102a4e

Browse files
MariaSolOsibhagwan
authored andcommitted
fix(highlights): parse highlight group in action
1 parent d45ce94 commit c102a4e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/fzf-lua/actions.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,8 @@ end
530530

531531
M.hi = function(selected)
532532
if #selected == 0 then return end
533-
vim.cmd("hi " .. selected[1])
533+
local hl = selected[1]:match("^[^%s]+")
534+
vim.cmd("hi " .. hl)
534535
vim.cmd("echo")
535536
end
536537

0 commit comments

Comments
 (0)