Closed neuromaancer closed 1 year ago
Are you using any Neovim distro?
LazyVim actually. But I don't think there is a conflict?
Does dd
and then p
work?
No, dd
works as expected, but not the p
.
more info: why I said yy doesn't work, because I have set 'highlight on yank' autocmd, but yy didn't highlight the text, shift+y did.
Please try yyp
again with the following config:
"m4xshen/hardtime.nvim",
lazy = false,
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
opts = { -- Add "oil" to the disabled_filetypes
disabled_filetypes = { "qf", "netrw", "NvimTree", "lazy", "mason", "oil" },
restricted_keys = {
["h"] = {},
["j"] = {},
["k"] = {},
["l"] = {},
},
resetting_keys = {
["y"] = {},
["p"] = {},
}
},
Also do you have any keymap related to y
or d
?
Yes, this works, but I think this is a compromised way to do it, right? I checked my remaps (also the LazyVim's), there is no keymap related to y
or d
.
Yeah this is just for debugging.
Sorry I just find I have a plugin concerning yank and paste action, but it is inside the LazyVim, called yanky.nvim. I bet this is not the issue.
Concrete mapping: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/plugins/extras/coding/yanky.lua
Hope that this is helpful!
Fixed in ab488fa. Thanks for the feedback!
Describe the bug When I used this plugin, I found the normal yank and paste functions don't work, for example 'yy' and 'p' as follows.
Config options