Skip to content

Commit

Permalink
add nph as nim formatter (#491)
Browse files Browse the repository at this point in the history
Add nph as another formatter for nim lang.
nph is an opinionated code formatter for Nim
https://github.com/arnetheduck/nph
  • Loading branch information
foxoman authored Feb 3, 2024
1 parent 209b56a commit 6a12b33
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autoload/neoformat/formatters/nim.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
function! neoformat#formatters#nim#enabled() abort
return ['nimpretty']
return ['nimpretty','nph']
endfunction

function! neoformat#formatters#nim#nph() abort
return {
\ 'exe': 'nph',
\ 'replace': 1,
\ }
endfunction

function! neoformat#formatters#nim#nimpretty() abort
Expand Down

0 comments on commit 6a12b33

Please sign in to comment.