diff options
| author | seraphim <18ycm9tx@anonaddy.me> | 2026-08-27 11:50:43 +0700 |
|---|---|---|
| committer | seraphim <18ycm9tx@anonaddy.me> | 2026-08-27 11:50:43 +0700 |
| commit | 6fc7f49449cb237e1aa37eb1025461fe3ea39589 (patch) | |
| tree | ceebc8a65556830627a4546da57e30e72945175e /.config/nvim/lua/config/keymaps.lua | |
| parent | cc7b61a1496d25a100f012300c1121835a9f8177 (diff) | |
.
Diffstat (limited to '.config/nvim/lua/config/keymaps.lua')
| -rwxr-xr-x | .config/nvim/lua/config/keymaps.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index e2987bc..0d482da 100755 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -11,3 +11,11 @@ vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv", { desc = "moves lines up in visual vim.keymap.set("n", "<leader>al", "<CMD>term<CR>", { desc = "Open terminal" }) vim.keymap.set("n", "<leader>f", vim.lsp.buf.format) + +-- universal clipboard hotkeys (niri sends these synthesized to the focused app) +-- super+c (Ctrl+Insert): copy selection +vim.keymap.set({"n", "v"}, "<C-Insert>", '"+y', { desc = "Copy selection to system clipboard" }) +-- super+v (Shift+Insert): paste +vim.keymap.set({"n", "i", "v"}, "<S-Insert>", '"+p', { desc = "Paste from system clipboard" }) +-- super+x (Shift+Delete): cut (delete selection into system clipboard) +vim.keymap.set({"v"}, "<S-Delete>", '"+d', { desc = "Cut selection to system clipboard" }) |
