diff options
author | abeldekat <58370433+abeldekat@users.noreply.github.com> | 2024-07-28 21:41:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-28 17:41:34 -0400 |
commit | 84cc12354dbe0ebda180d445f54820def8c4638f (patch) | |
tree | 4d1aec4c75f387cf2d0419e845450de703ae4211 /init.lua | |
parent | fd66454c4a02abb44568159e7447060b962e1b5d (diff) |
performance: defer clipboard because xsel and pbcopy can be slow (#1049)
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -111,9 +111,12 @@ vim.opt.mouse = 'a' vim.opt.showmode = false -- Sync clipboard between OS and Neovim. +-- Schedule the setting after `UiEnter` because it can increase startup-time. -- Remove this option if you want your OS clipboard to remain independent. -- See `:help 'clipboard'` -vim.opt.clipboard = 'unnamedplus' +vim.schedule(function() + vim.opt.clipboard = 'unnamedplus' +end) -- Enable break indent vim.opt.breakindent = true |