Skip to content

Upload the current buffer or range to any haste server.

License

Notifications You must be signed in to change notification settings

ppebb/haste-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haste-nvim

Small lua (🚀) plugin for uploading the contents of the current buffer to any* haste service.

Configuration

You need to call require("haste").setup() somewhere in your config.

As of now there are only two config options, url and setclip.

require("haste").setup({
    url = "https://paste.ppeb.me",   -- Must include http:// or https:// and no trailing slash
    setclip = false,                 -- If set to true, the system clipboard will be set to the url when run
})

There are no default bindings, but a :Haste command is provided. The command can also operate on a visual mode selection, uploading only the selected lines.

Notes

  • Requires curl on the path
  • The haste instance should have an endpoint at /documents. A default haste server will have that so it shouldn't be an issue.

About

Upload the current buffer or range to any haste server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages