Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ppebb/haste-nvim
Upload the current buffer or range to any haste server.
https://github.com/ppebb/haste-nvim
Last synced: about 1 month ago
JSON representation
Upload the current buffer or range to any haste server.
- Host: GitHub
- URL: https://github.com/ppebb/haste-nvim
- Owner: ppebb
- License: gpl-2.0
- Created: 2022-05-29T00:00:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-02T11:19:42.000Z (11 months ago)
- Last Synced: 2024-04-24T11:19:12.616Z (8 months ago)
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`.
```lua
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.