NixOS/home/config/nvim/lua/plugins/ssh.lua

14 lines
400 B
Lua
Raw Normal View History

2024-06-12 09:54:11 +07:00
return {
"ojroques/nvim-osc52",
cond = vim.env.SSH_CLIENT ~= nil,
config = function()
require("osc52").setup({})
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
require("osc52").copy(table.concat(vim.v.event.regcontents, "\n"))
end,
desc = "Copy to Clipboard from SSH Session",
})
end,
}