Hello, I want to run a normal keymap using lua function.
Is it possible?
Say I have
vim.keymap.set("n", "<leader>f", function()
return vim.cmd.Telescope("live_grep")
end)
I have tried
local keys = vim.api.nvim_replace_termcodes("<leader>f", true, false, true)
vim.api.nvim_feedkeys(keys, "n", false)
vim.cmd("<leader>f")
and
vim.api.nvim_input("<leader>f")
but none of them work.