nvim/lua/plugins/ssh.lua
2024-06-17 15:22:39 +07:00

14 lines
400 B
Lua

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,
}