Open liaohui5 opened 1 year ago
Hi, The following worked fine on my machine.
Ginitvim is the same above
goneovim.lua
-- Placed in $XDG_CONFIG_HOME/nvim/lua/goneovim.lua
local keymap = vim.api.nvim_set_keymap
local option = { noremap = true, silent = true }
keymap("v", "<D-c>", [["+y]], option) -- Copy
keymap("n", "<D-v>", [["+gP]], option) -- Paste in normal mode
keymap("v", "<D-v>", [["+P]], option) -- Paste in visual mode
keymap("i", "<D-v>", [[<ESC>"+pA]], option) -- Paste in insert mode
Run /path/to/goneovim
map
command result:
imap
command result:
Sorry, I may not have made it clear.
in buffer content area is working, but in TelescopePrompt
it's not working,
so, if you want to reproduce it, you have to install telescope.nvim plugin.
:Telescope find_files
open TelescopePrompt
I try to bind hotkeys in lua scripts, but in telescopePrompt it's not working