Closed j-barnak closed 1 year ago
Here's how'd you do it
return {
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"debugloop/telescope-undo.nvim",
},
config = function()
local opts = {
extensions = {
undo = {
mappings = {
i = {
["<s-cr>"] = require("telescope-undo.actions").yank_additions,
["<c-cr>"] = require("telescope-undo.actions").yank_deletions,
["<cr>"] = require("telescope-undo.actions").restore
},
},
},
},
}
require("telescope").setup(opts)
require("telescope").load_extension("undo")
end,
}
Was forgetting the i
under mapping
To preface,
yank_additions
,yank_deletions
, andrestore
all work prior to editingmappings
so I know the issue is not with my terminal.Proof of telescope-undo working normally with \<C-cr> restoring the buffer
I have tried a variation of the following:
which gives me this error:
And so, I manually passed
opts
toconfig
and calledsetup
myself.but I get the same error.
I wrapped my calls init callbacks with
And that causes
telescope-undo
not work in the telescope floating window. Every press of enter resets the cursorVideo showcase #1
---
Edit: I have also tried the following, but this still doesn't work. I decided to include it because I'm not sure if this is *progress*. Pressing enter on on an undo item opens a blank screen (video example below)
Video showcase #2
I removed the
opts
and did everything in the config.And putting the
setup
before theload_extension
Putting the setup after the
load_extension
s does nothingHere's what happens before setup is before the load_extensions