From 7548d9147dddbb018defc221f786088a1c13fba8 Mon Sep 17 00:00:00 2001 From: Dimitar Ivanov Date: Mon, 18 Sep 2023 12:50:25 +0300 Subject: [PATCH] Adding json plugins --- init.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 4ca6c506..d47a686e 100644 --- a/init.lua +++ b/init.lua @@ -123,7 +123,10 @@ require('lazy').setup({ }, -- Useful plugin to show you pending keybinds. - { 'folke/which-key.nvim', opts = {} }, + { 'folke/which-key.nvim', opts = {} }, + -- JQ integration + { 'gennaro-tedesco/nvim-jqx', ft = { "json", "yaml" } }, -- Qs with integrations + { 'mogelbrod/vim-jsonpath', ft = { "json", "yaml" } }, -- Shows current JSON path { -- Adds git related signs to the gutter, as well as utilities for managing changes 'lewis6991/gitsigns.nvim', @@ -771,6 +774,10 @@ vim.opt.guicursor = vim.keymap.set("n", "Q", "") vim.keymap.set("n", "W", "") +-- JsonPath +vim.keymap.set("n", "json", ":JsonPath") +vim.keymap.set("n", "qjson", ":JsonPath ") + -- VBAll vim.api.nvim_command("ca vball vertical ball")