瀏覽代碼

feat: Add clipboard sync by default (#166)

Tudor 3 年之前
父節點
當前提交
9f384d76f4
共有 1 個文件被更改,包括 5 次插入 和 0 次删除
  1. 5 0
      init.lua

+ 5 - 0
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