summaryrefslogtreecommitdiff
path: root/lua/aotrix/set.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/aotrix/set.lua')
-rw-r--r--lua/aotrix/set.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/aotrix/set.lua b/lua/aotrix/set.lua
index 619d134..e6e4e93 100644
--- a/lua/aotrix/set.lua
+++ b/lua/aotrix/set.lua
@@ -36,9 +36,15 @@ vim.opt.updatetime = 50
vim.opt.cursorline = false
vim.opt.showmode = false
+
if vim.g.neovide then
vim.g.neovide_opacity = 0.7
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