https://github.com/austinwilcox/jsonhero.nvim
Open visually selected JSON in JsonHero
https://github.com/austinwilcox/jsonhero.nvim
json lua neovim
Last synced: 5 months ago
JSON representation
Open visually selected JSON in JsonHero
- Host: GitHub
- URL: https://github.com/austinwilcox/jsonhero.nvim
- Owner: austinwilcox
- Created: 2024-02-01T16:23:43.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-01T18:47:36.000Z (about 2 years ago)
- Last Synced: 2025-01-01T11:41:44.568Z (over 1 year ago)
- Topics: json, lua, neovim
- Language: Lua
- Homepage:
- Size: 135 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# JsonHero.nvim
This plugin is intended to open visually selected json text from neovim in a new browser window in Json Hero. You can trigger the plugin by highlighting text, entering command mode, and then typing ```Jsonhero```.

## Setup
**Lazy**
```lua
{
"austinwilcox/jsonhero.nvim",
config = function()
require("jsonhero").setup({})
end
}
```
**Packer**
```lua
use {
"austinwilcox/jsonhero.nvim",
config = function()
require("jsonhero").setup({})
end
}
```
## Experimenting
This small json blerb works great, I struggle with some larger json files, and I think this has everything to do with hitting the url limit in number of characters with the base64 text.
```json
{
"hello": "world"
}
```
## TODO:
- [ ] When the encoded base64 string goes past the limit for a url, error out instead of trying to hit json hero