~gpanders/dotfiles

ref: 1e9f8dd001f12b57c7ff1b45adb7c59541b752c6 dotfiles/.vim/after/ftplugin/json.vim -rw-r--r-- 265 bytes
1e9f8dd0Gregory Anders fish: remove fuzzy finder from buku alias 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
if executable('jq')
    setlocal formatprg=jq
elseif executable('prettier')
    setlocal formatprg=prettier\ --parser\ json5\ --config-precedence\ prefer-file
endif

if !empty(&l:formatprg)
    let b:undo_ftplugin = get(b:, 'undo_ftplugin', '') . '|setl fp<'
endif