aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor <59114560+tudorjnu@users.noreply.github.com>2023-02-17 21:37:36 +0000
committerGitHub <noreply@github.com>2023-02-17 16:37:36 -0500
commit9f384d76f4ecb3d12b9315767df3b327a3c9191b (patch)
tree682f6a355d25a45923adfd13dcc6afff1d9a7db0
parent3526fbeec9299dad5f7b14894765c34c83cf8324 (diff)
feat: Add clipboard sync by default (#166)
-rw-r--r--init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 13db139..aeca6d2 100644
--- a/init.lua
+++ b/init.lua
@@ -201,6 +201,11 @@ vim.wo.number = true
-- Enable mouse mode
vim.o.mouse = 'a'
+-- Sync clipboard between OS and Neovim.
+-- Remove this option if you want your OS clipboard to remain independent.
+-- See `:help 'clipboard'`
+vim.o.clipboard = 'unnamedplus'
+
-- Enable break indent
vim.o.breakindent = true