Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 866 Bytes

README.md

File metadata and controls

42 lines (23 loc) · 866 Bytes

jq.nvim

Use jq in Neovim.

Getting Started

Install jq or ensure it is on your PATH.

Installation

Using lazy.nvim

{ 'TravisYeah/jq.nvim' }

Usage

Open a .json file in Neovim and try the command

:Jq or <leader>jq

Edit the first line to alter the jq input. The output will update automatically as you type.

You can also pass a command that will be piped into jq as input

:Jq "xclip -o"

or add it to a keymap

vim.api.nvim_set_keymap('n', '<leader>jc', '<cmd>Jq "xclip -o"<cr>', { noremap = true })

Go to a line or visual select some text and press:

<leader>jf

to search your original json (files only) for that text.

Close the window by running the command :Jq again or simply exit the window.