diff options
author | Alan Pearce | 2023-04-25 21:42:45 +0200 |
---|---|---|
committer | Alan Pearce | 2023-04-25 21:42:45 +0200 |
commit | cb9dbecb7080f5989e5bcc07959c719ee05cea81 (patch) | |
tree | 961198dd22afef37b2bd80c07ce0d3940a30a1f1 /user/nvim | |
parent | a5a38243c7795fe4638838c4e2f5618ad9b5c953 (diff) | |
download | nixfiles-cb9dbecb7080f5989e5bcc07959c719ee05cea81.tar.lz nixfiles-cb9dbecb7080f5989e5bcc07959c719ee05cea81.tar.zst nixfiles-cb9dbecb7080f5989e5bcc07959c719ee05cea81.zip |
neovim: add keybinds for copy/paste to system clipboard
Diffstat (limited to 'user/nvim')
-rw-r--r-- | user/nvim/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/user/nvim/init.lua b/user/nvim/init.lua index c3587e79..faf6ca5b 100644 --- a/user/nvim/init.lua +++ b/user/nvim/init.lua @@ -9,6 +9,16 @@ vim.opt.number = true vim.g.mapleader = "," local keyset = vim.keymap.set + +keyset("v", "<leader>y", "\"+y", {}) +keyset("n", "<leader>Y", "\"+yg_", {}) +keyset("n", "<leader>y", "\"+y", {}) + +keyset("v", "<leader>p", "\"+p", {}) +keyset("v", "<leader>P", "\"+P", {}) +keyset("n", "<leader>p", "\"+p", {}) +keyset("n", "<leader>P", "\"+P", {}) + -- Autocomplete function _G.check_back_space() local col = vim.fn.col('.') - 1 |