performance: defer clipboard because xsel and pbcopy can be slow (#1049)
This commit is contained in:
parent
57bd41433e
commit
eb8592f29f
1 changed files with 4 additions and 1 deletions
5
init.lua
5
init.lua
|
@ -126,9 +126,12 @@ vim.opt.spell = true
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue