commit b4c809f545828a0668d94eb7d1a9f31a95035dfc
parent 87f09949bde64a692368cb8f872891be1da72176
Author: Chris Bracken <chris@bracken.jp>
Date: Sun, 29 Jun 2025 15:26:29 -0700
nvim: use the system clipboard
I will go bury my head in shame now. All things considered, the small
advantage of having a clipboard for vim that won't be affected by the
system clipboard is pretty minimal in practice, and typing `"*p` to
paste from the system clipboard gets tedious fast.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua
@@ -1,5 +1,6 @@
-- Basic options
vim.opt.mouse = '' -- Disable visual-mode mouse select.
+vim.opt.clipboard = 'unnamedplus' -- Use the system clipboard on macOS.
vim.opt.incsearch = true -- Turn on incremental searching.
vim.opt.hlsearch = true -- Highlight search.
vim.opt.visualbell = true -- Less noise.