From e8d66b41e9950288c025e463c1c2066758eef907 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Tue, 15 Apr 2025 19:51:39 -0400 Subject: [PATCH] added system copy paste functionality --- defaults/nvim/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/defaults/nvim/init.lua b/defaults/nvim/init.lua index 2ce1cdd..ce06ec5 100644 --- a/defaults/nvim/init.lua +++ b/defaults/nvim/init.lua @@ -1,6 +1,14 @@ -- This file simply bootstraps the installation of Lazy.nvim and then calls other files for execution -- This file doesn't necessarily need to be touched, BE CAUTIOUS editing this file and proceed at your own risk. local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim" + +vim.api.nvim_set_keymap("v", "", '"+y', { noremap = true }) +vim.api.nvim_set_keymap("n", "", 'l"+P', { noremap = true }) +vim.api.nvim_set_keymap("v", "", '"+P', { noremap = true }) +vim.api.nvim_set_keymap("c", "", 'l"+Pl', { noremap = true }) +vim.api.nvim_set_keymap("i", "", 'l"+Pli', { noremap = true }) +vim.api.nvim_set_keymap("t", "", '"+Pi', { noremap = true }) + if not (vim.env.LAZY or (vim.uv or vim.loop).fs_stat(lazypath)) then -- stylua: ignore vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })