Skip to content

Commit

Permalink
performance: defer clipboard because xsel and pbcopy can be slow (nvi…
Browse files Browse the repository at this point in the history
  • Loading branch information
abeldekat authored Jul 28, 2024
1 parent fd66454 commit 84cc123
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84cc123

Please sign in to comment.