json.lua (304B)
1 vim.keymap.set('n', 'gO', '<cmd>Json<cr>') 2 3 if vim.fn.exists '+winbar' then 4 vim.opt_local.winbar = '%{luaeval(\'require\"tms.p.jsonpath\".get()\')} %=%f' 5 end 6 7 vim.keymap.set('n', 'y<c-p>', function() 8 vim.fn.setreg('+', require 'tms.p.jsonpath'.get()) 9 end, { buffer = true, desc = 'Yank Json Path' })