summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/aotrix/remap.lua6
-rw-r--r--lua/aotrix/set.lua5
2 files changed, 6 insertions, 5 deletions
diff --git a/lua/aotrix/remap.lua b/lua/aotrix/remap.lua
index dbb777b..c12617d 100644
--- a/lua/aotrix/remap.lua
+++ b/lua/aotrix/remap.lua
@@ -19,3 +19,9 @@ vim.keymap.set({"n", "i", "v"}, '<C-c>', '<nop>')
vim.keymap.del("n", "grx")
vim.keymap.set("n", "<leader>pv", "<cmd>Oil<cr>")
+
+if vim.g.neovide then
+ local function paste() vim.api.nvim_paste(vim.fn.getreg("+"), true, -1) end
+ vim.keymap.set({"n", "i", "v", "c", "t"}, "<C-S-v>", paste,
+ {silent = true, desc = "Paste"})
+end
diff --git a/lua/aotrix/set.lua b/lua/aotrix/set.lua
index e6e4e93..503de5d 100644
--- a/lua/aotrix/set.lua
+++ b/lua/aotrix/set.lua
@@ -42,9 +42,4 @@ if vim.g.neovide then
vim.g.neovide_normal_opacity = 0.7
vim.g.neovide_scale_factor = 1.00
vim.o.guifont = "Source Code Pro:h14.28"
- local function copy() vim.cmd([[normal! "+y]]) end
- local function paste() vim.api.nvim_paste(vim.fn.getreg("+"), true, -1) end
- vim.keymap.set("v", "<C-c>", copy, {silent = true, desc = "Copy"})
- vim.keymap.set({"n", "i", "v", "c", "t"}, "<C-v>", paste,
- {silent = true, desc = "Paste"})
end