Skip to content

Commit

Permalink
fix!: hotfix FzfLua buttons, breaks button queueing
Browse files Browse the repository at this point in the history
  • Loading branch information
goolord committed Mar 4, 2022
1 parent 735d690 commit 06ade3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lua/alpha/themes/dashboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ local function button(sc, txt, keybind, keybind_opts)
end

local function on_press()
local key = vim.api.nvim_replace_termcodes(sc_ .. "<Ignore>", true, false, true)
vim.api.nvim_feedkeys(key, "normal", false)
-- local key = vim.api.nvim_replace_termcodes(keybind .. "<Ignore>", true, false, true)
-- vim.api.nvim_feedkeys(key, "t", false)
vim.api.nvim_feedkeys(sc, "t", false)
end

return {
Expand Down
5 changes: 3 additions & 2 deletions lua/alpha/themes/startify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ local function button(sc, txt, keybind, keybind_opts)
end

local function on_press()
local key = vim.api.nvim_replace_termcodes(keybind .. "<Ignore>", true, false, true)
vim.api.nvim_feedkeys(key, "normal", true)
-- local key = vim.api.nvim_replace_termcodes(keybind .. "<Ignore>", true, false, true)
-- vim.api.nvim_feedkeys(key, "t", false)
vim.api.nvim_feedkeys(sc, "t", false)
end

return {
Expand Down

0 comments on commit 06ade3a

Please sign in to comment.