Skip to content

Commit 9f384d7

Browse files
authored
feat: Add clipboard sync by default (nvim-lua#166)
1 parent 3526fbe commit 9f384d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ vim.wo.number = true
201201
-- Enable mouse mode
202202
vim.o.mouse = 'a'
203203

204+
-- Sync clipboard between OS and Neovim.
205+
-- Remove this option if you want your OS clipboard to remain independent.
206+
-- See `:help 'clipboard'`
207+
vim.o.clipboard = 'unnamedplus'
208+
204209
-- Enable break indent
205210
vim.o.breakindent = true
206211

0 commit comments

Comments
 (0)