Skip to content

Latest commit

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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 tourl=vim.env.WASTEBIN_URL,
-- argv list used to POST the content; the URL is appended automaticallypost_cmd= { "curl", "-s", "-H", "Content-Type: application/json", "--data-binary", "@-" },
-- argv list used to open the resulting URL; the URL is appended automaticallyopen_cmd= { "open" },
-- Ask for confirmationask=true,
}

⌨️ Commands

To paste the entire buffer or a selection call

:WastePaste

and

:'<,'>WastePaste

respectively.

About

A neovim plugin for the wastebin pastebin

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages