Skip to content

austinwilcox/jsonhero.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

{
    "austinwilcox/jsonhero.nvim",
    config = function()
      require("jsonhero").setup({})
    end
}

Packer

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.

{
  "hello": "world"
}

TODO:

  • When the encoded base64 string goes past the limit for a url, error out instead of trying to hit json hero

About

Open visually selected JSON in JsonHero

Topics

Resources

Stars

Watchers

Forks

Languages