Skip to content

Commit

Permalink
🐛 Fixed Neovim OSC52 waiting for response
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaqanbaryan committed Jul 18, 2024
1 parent 0a4d10d commit 03f2822
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nvim/lua/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,20 @@ vim.opt.smartcase = true
-- Add indent for p/li in html
vim.g.html_indent_tags = 'li│p'

local function paste()
return {
vim.fn.split(vim.fn.getreg(""), "\n"),
vim.fn.getregtype(""),
}
end
vim.g.clipboard = {
name = 'OSC 52',
copy = {
['+'] = require('vim.ui.clipboard.osc52').copy('+'),
['*'] = require('vim.ui.clipboard.osc52').copy('*'),
},
paste = {
['+'] = require('vim.ui.clipboard.osc52').paste('+'),
['*'] = require('vim.ui.clipboard.osc52').paste('*'),
['+'] = paste,
['*'] = paste,
},
}

0 comments on commit 03f2822

Please sign in to comment.