diff options
| author | Aotrix <[email protected]> | 2026-05-23 11:48:44 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-05-23 11:48:44 +0200 |
| commit | b82ab96e3768522a0d6f99a91e3e17b229a25f96 (patch) | |
| tree | 2dc4ffd6c771222d86e10fd3465e2afcc6f8fa2a /lua | |
| parent | 0c6cead7d78d4895b7ceb1d37a910886d70d80f4 (diff) | |
Move shortcuts to remap
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/aotrix/remap.lua | 6 | ||||
| -rw-r--r-- | lua/aotrix/set.lua | 5 |
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 |
