Skip to content

Commit

Permalink
[nvim] Enable clipboard in a scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Aug 21, 2024
1 parent 5871a77 commit cc16b23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion home/neovim/extra-config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ vim.o.cursorline = true
vim.o.inccommand = "split"

-- clipboard
vim.o.clipboard = "unnamedplus"
vim.schedule(function()
vim.opt.clipboard = "unnamedplus"
end)

vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }),
Expand Down

0 comments on commit cc16b23

Please sign in to comment.