From 17e84d9d6abbc4ba395c92d5c428b5f95ff15745 Mon Sep 17 00:00:00 2001 From: Michael Short Date: Sun, 8 Dec 2024 00:45:28 -0700 Subject: [PATCH] wl-clipboard --- init.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 15665a79..7947c980 100644 --- a/init.lua +++ b/init.lua @@ -92,7 +92,19 @@ vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal vim.g.have_nerd_font = false - +-- Make wl-clipboard into the clipboard provider +vim.g.clipboard = { + name = 'wl-clipboard', + copy = { + ['+'] = 'wl-copy', + ['*'] = 'wl-copy', + }, + paste = { + ['+'] = 'wl-paste', + ['*'] = 'wl-paste', + }, + cache_enabled = 0, +} -- [[ Setting options ]] -- See `:help vim.opt` -- NOTE: You can change these options as you wish!