Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vroom/zprint.vroom
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ The zprint formatter expects the zprint executable to be installed on your syste

:FormatCode zprint
! cd .* zprint .*
$ no-op

The name or path of the zprint executable can be configured via the
zprint_executable flag if the default of "zprint" doesn't work.

:Glaive codefmt zprint_executable='/usr/local/bin/zprint'
:FormatCode zprint
! cd .* /usr/local/bin/zprint .*
$ no-op
:Glaive codefmt zprint_executable='zprint'

You can format an entire buffer with :FormatCode.
Expand Down Expand Up @@ -82,6 +84,7 @@ Zprint is the default formatter for the clojure file type, so calling
:set filetype=clojure
:FormatCode
! cd .* zprint .*
$ no-op
:set filetype&

The default setting of zprint_options propagates Vim's textwidth setting to
Expand All @@ -90,4 +93,5 @@ zprint's command-line.
:set textwidth=123
:FormatCode zprint
! cd .* zprint .*:width 123.*
$ no-op
:set textwidth&