diff options
Diffstat (limited to 'lua/options.lua')
-rw-r--r-- | lua/options.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/options.lua b/lua/options.lua index c97d75f..94ee2ed 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -16,9 +16,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 |