home: vim: remove 'nvim-osc52'
OSC52 supports has been added upstream, and is set up automatically when `SSH_TTY` is set (and a few other conditions) in v0.10.
This commit is contained in:
parent
b8c818ed5e
commit
74400fc6dd
|
@ -58,7 +58,6 @@ in
|
||||||
|
|
||||||
# General enhancements
|
# General enhancements
|
||||||
vim-qf # Better quick-fix list
|
vim-qf # Better quick-fix list
|
||||||
nvim-osc52 # Send clipboard data through terminal escape for SSH
|
|
||||||
|
|
||||||
# Other wrappers
|
# Other wrappers
|
||||||
git-messenger-vim # A simple blame window
|
git-messenger-vim # A simple blame window
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
if not require("ambroisie.utils").is_ssh() then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local function copy(lines, _)
|
|
||||||
require("osc52").copy(table.concat(lines, "\n"))
|
|
||||||
end
|
|
||||||
|
|
||||||
local function paste()
|
|
||||||
return { vim.fn.split(vim.fn.getreg(""), "\n"), vim.fn.getregtype("") }
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.g.clipboard = {
|
|
||||||
name = "osc52",
|
|
||||||
copy = { ["+"] = copy, ["*"] = copy },
|
|
||||||
paste = { ["+"] = paste, ["*"] = paste },
|
|
||||||
}
|
|
Loading…
Reference in a new issue