All Projects → rktjmp → paperplanes.nvim

rktjmp / paperplanes.nvim

Licence: MIT license
Neovim ✈️ Pastebins

Programming Languages

Fennel
19 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to paperplanes.nvim

hotpot.nvim
🍲 Carl Weathers #1 Neovim Plugin.
Stars: ✭ 183 (+266%)
Mutual labels:  neovim-plugin, fennel
nvim-tetris
Bringing emacs' greatest feature to neovim - Tetris!
Stars: ✭ 114 (+128%)
Mutual labels:  neovim-plugin, fennel
doctor.nvim
Emacs greatest feature, now also in neovim!
Stars: ✭ 27 (-46%)
Mutual labels:  neovim-plugin, fennel
bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (+100%)
Mutual labels:  neovim-plugin
SimpleSnippets.vim
Simple snippet support for your Vim and Neovim
Stars: ✭ 86 (+72%)
Mutual labels:  neovim-plugin
Snippet-Share
This is a snippet sharing app that can be used to share snippets of code and more.
Stars: ✭ 41 (-18%)
Mutual labels:  pastebin
vim-dap
Vim/Neovim debugger plugin providing a terminal interface to the Debug Adapter Protocol
Stars: ✭ 43 (-14%)
Mutual labels:  neovim-plugin
pste
Just a simple file hosting application inspired by the likes of pomf.se and teknik.io.
Stars: ✭ 22 (-56%)
Mutual labels:  pastebin
imperial
Official mono-repo for https://imperialb.in/
Stars: ✭ 35 (-30%)
Mutual labels:  pastebin
nvim-parinfer
parinfer for Neovim
Stars: ✭ 69 (+38%)
Mutual labels:  fennel
stabilize.nvim
Neovim plugin to stabilize window open/close events.
Stars: ✭ 295 (+490%)
Mutual labels:  neovim-plugin
cutlass.nvim
Plugin that adds a 'cut' operation separate from 'delete'
Stars: ✭ 78 (+56%)
Mutual labels:  neovim-plugin
PastaBean
Python Script to Scrape Pastebin with Regex
Stars: ✭ 0 (-100%)
Mutual labels:  pastebin
github-notifications.nvim
Statusline + Telescope integration for viewing and interacting with GitHub notifications
Stars: ✭ 70 (+40%)
Mutual labels:  neovim-plugin
sad.nvim
Space Age seD in Neovim. A project-wide find and replace plugin for Neovim.
Stars: ✭ 38 (-24%)
Mutual labels:  neovim-plugin
aerial.nvim
Neovim plugin for a code outline window
Stars: ✭ 485 (+870%)
Mutual labels:  neovim-plugin
neuron.nvim
Make neovim the best note taking application
Stars: ✭ 340 (+580%)
Mutual labels:  neovim-plugin
plotty
matplotlib-cpp with Eigen interfaces.
Stars: ✭ 39 (-22%)
Mutual labels:  fennel
session-lens
A session-switcher extension for rmagatti/auto-session using Telescope.nvim
Stars: ✭ 143 (+186%)
Mutual labels:  neovim-plugin
fm-nvim
🗂 Neovim plugin that lets you use your favorite terminal file managers (and fuzzy finders) from within Neovim.
Stars: ✭ 114 (+128%)
Mutual labels:  neovim-plugin

paperplanes.nvim

paperplanes Logo

Post selections or buffers to online paste bins. Save the URL to a register, or dont.

Requirements

  • Neovim 0.5+
  • A curl executable in your $PATH

Install

Use your package manager.

Configuration & Use

Setup

-- options shown with default values
require("paperplanes").setup({
  register = "+",
  provider = "0x0.st",
  provider_options = {},
  notifier = vim.notify or print,
})
  • register - any valid register name or false
  • provider - See provider list.
  • provider_options - passed to selected provider, check provider code for accepted options.
  • notifier - any function that accepts a string, should show that string in some way.

Commands

Post selection or buffer to configured provider, sets configured register and print's the result.

  • :PP -> Post current buffer.

  • :[range]PP -> Post range.

    • Vim does not support column aware ranges when using commands. Use post_selection via a map for that behaviour.

Functions

See :h paperplanes for more complete documentation.

Functions are provided in snake_case and kebab-case (post_string and post-string).

All functions accept a callback argument which is called with url, nil or nil, errors.

provider-name and provider-options are optional and the default provider will be used if not given.

Functions to not automatically print the url or set any registers.

  • post_string(content, metadata, callback, provider-name, provider-options)
  • post_range(buffer, start_pos, end_pos, callback, provider-name, provider-options)
  • post_selection(callback, provider-name, provider-options)
  • post_buffer(buffer, callback, provider-name, provider-options)

Providers

paperplanes supports the following providers, see sites for TOS and features.

To create a new provider, see :h paperplanes and fnl/paperplanes/providers/*.fnl.

paperplanes is not affiliated with any provider in any manner.

Building

paperplanes includes a basic build system. It requires hotpot.nvim to run.

  1. Run :Fnlfile build.fnl when your cwd is paperplanes.nvim.

or

  1. Remove rm -rf lua/ and Hotpot will automatically compile when you reload neovim.

Changelog

0.1.2

  • Added ray.so support
  • Function API able to use non-default provider and provider options

0.1.1

  • Added sr.ht support
  • Added provider-options support

0.1.0

Initial release

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].