Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cameronviner/carbon-now-sh.nvim
A neovim plugin that enables you to open your selected text in carbon.now.sh
https://github.com/cameronviner/carbon-now-sh.nvim
lua neovim vim vim-plugin
Last synced: about 2 months ago
JSON representation
A neovim plugin that enables you to open your selected text in carbon.now.sh
- Host: GitHub
- URL: https://github.com/cameronviner/carbon-now-sh.nvim
- Owner: cameronviner
- License: mit
- Created: 2022-07-08T08:16:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T11:02:46.000Z (about 2 years ago)
- Last Synced: 2024-06-17T19:01:40.423Z (3 months ago)
- Topics: lua, neovim, vim, vim-plugin
- Language: Lua
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# carbon-now-sh.nvim
A neovim plugin that enables you to open your selected text in [carbon](https://carbon.now.sh/) so that you can create screenshots of your code for sharing.
## Installation
Using Plug:
`Plug 'cameronviner/carbon-now-sh.nvim'`
## Usage
Select your text in visual mode and then run:
`:lua require('carbonnow').capture()`
You can also create a keymap to call the function, for example:
`vnoremap cb :lua require('carbonnow').capture()`
## Options
Call the setup function in your `init.vim`/`init.lua` and pass in options to overwrite the default config:
```
require("carbonnow").setup({
-- base_url: If you are running an private/local instance you can overwrite the url
base_url = "https://carbon.now.sh/" -- This is the default value
-- theme: Can be used to overwrite the default theme
theme = "seti" -- This is the default value
})
```