Closed xaljer closed 3 years ago
You can use nvim_feedkeys() and nvim_replace_termcodes().
nvim_feedkeys()
nvim_replace_termcodes()
local gesture = require('gesture') gesture.register({ name = "go back", inputs = { gesture.right(), gesture.left() }, action = [[lua vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<C-o>", true, false, true), "n", true)]] })
📝 :help nvim_feedkeys()
:help nvim_feedkeys()
https://github.com/notomo/gesture.nvim/commit/16de5dc86678ae2ade8d063af57e99e0d05553b5
@notomo Cool~
You can use
nvim_feedkeys()
andnvim_replace_termcodes()
.📝
:help nvim_feedkeys()