Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 609 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 609 Bytes

jp.nvim

jp.nvim is an interface to JMESPath, an expression language for manipulating JSON.

Requirements

  • Neovim 0.9.1 or higher
  • Go 1.20 or higher

Installation

Using packer.nvim,

use {
  'kit494way/jp.nvim',
  run = 'go build',
}

Usage

Open a JSON file and execute :JP query.

For example, open a JSON file with the following contents,

{
  "foo": 1,
  "bar": [2, 3]
}

and execute the command :JP foo. The following result will be displayed in a scratch buffer.

1

For more information on JMESPath, please see here.