aboutsummaryrefslogtreecommitdiff
path: root/lua/options.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-07-29 20:17:53 +0200
committerDamjan 9000 <damjan.9000@gmail.com>2024-07-29 20:17:53 +0200
commit0a274ab66ccfb78015843af500cba24f806a7e1b (patch)
tree580bc01e430ccc3905672e53a0fc1c0308512959 /lua/options.lua
parent5a2930fe62bd4fea7a512a51dab355522736432e (diff)
parent84cc12354dbe0ebda180d445f54820def8c4638f (diff)
Merge 'upstream' refactor lazydev, defer clipboard
performance: defer clipboard because xsel and pbcopy can be slow refactor: remove lazydev and luvit-meta as lsp dependencies
Diffstat (limited to 'lua/options.lua')
-rw-r--r--lua/options.lua5
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