Home

Awesome

wastebin.nvim

A wastebin plugin to paste the current buffer or selection.

📦 Installation

Use your preferred package manage, for example Lazy.nvim:

return {
  {
    "matze/wastebin.nvim",
    config = true,
  }
}

⚙️ Configuration

Either set the wastebin URL as WASTEBIN_URL environment variable or pass it to the setup function

require("wastebin").setup({
  url = "https://foo.bar.com",
})

The plugin comes with the following defaults:

{
  -- URL of wastebin service to POST pastes to
  url = vim.env.WASTEBIN_URL,
  -- Shell command to POST the content
  post_cmd = "curl -s -H 'Content-Type: application/json' --data-binary @- ",
  -- Shell command to open URLs
  open_cmd = "open",
}

⌨️ Commands

To paste the entire buffer or a selection call

:WastePaste

and

:'<,'>WastePaste

respectively.