VPavliashvili / json-nvim

Powerful Json processing capabilities in your Neovim buffer
MIT License
5 stars 0 forks source link
jq json json-format json-formatter neovim neovim-plugin nvim-plugin

json-nvim

json-nvim is a NeoVim plugin that aims to vastly improve json editing and processing experience with help of jq and Neovim Treesitter

🚧 NOTE: This plugin is developed on linux environment and support for mac is not tested. Also some functionality won't work on windows

Features

:warning: switching key cases is not supported on windows yet

Prerequisites

Installation

Using lazy.nvim:

{
    "VPavliashvili/json-nvim",
    ft = "json", -- only load for json filetype
}

Configuration

There is not much needed but I reccomend to use keymaps, otherwise you can ignore this section
For example setup with lazy.nvim like this

{
    "VPavliashvili/json-nvim",
    config = function()
        vim.keymap.set("n", "<leader>jff", '<cmd>JsonFormatFile<cr>')
        vim.keymap.set("n", "<leader>jmf", '<cmd>JsonMinifyFile<cr>')
    end,
}

Usage

These are all the available commands below with usage examples
Commands involving visual mode always should be used with valid json selection

TODO