Skip to content

Commit

Permalink
feat(vim): configure JSON folding
Browse files Browse the repository at this point in the history
For now use `.vim/after/ftplugin/` as the location for JSON specific
settings. This could also live in `.vimrc` (`.vim/vimrc`) as an
`autocmd`.
  • Loading branch information
matijs committed Sep 30, 2024
1 parent 7fb7e44 commit 5a19a97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .vim/after/ftplugin/json.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
" folds fold {} and []
setlocal foldmethod=syntax
" open with all folds opened
setlocal nofoldenable

0 comments on commit 5a19a97

Please sign in to comment.