1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Add JSONpath plugin to vim

This commit is contained in:
Daniel Barber 2021-05-10 16:26:06 -04:00
parent dd1fb9d208
commit 40267398b2
2 changed files with 7 additions and 0 deletions

6
vim/vimrc.d/jsonpath.vim Normal file
View File

@ -0,0 +1,6 @@
" Copy path to a named register (* in this case) when calling :JsonPath
let g:jsonpath_register = '*'
" Define mappings for json buffers
au FileType json noremap <buffer> <silent> <leader>d :call jsonpath#echo()<CR>
au FileType json noremap <buffer> <silent> <leader>g :call jsonpath#goto()<CR>

View File

@ -40,6 +40,7 @@ Plug 'leafgarland/typescript-vim'
Plug 'peitalin/vim-jsx-typescript'
Plug 'jparise/vim-graphql'
Plug 'styled-components/vim-styled-components', { 'branch': 'main' }
Plug 'mogelbrod/vim-jsonpath'
Plug 'junegunn/goyo.vim'
Plug 'reedes/vim-pencil'