feature-not-a-bug / vim-fourmolu

A vim plugin that supports formatting Haskell with fourmolu when saving a file
MIT License
1 stars 1 forks source link

Add `-q` parameter to fourmolu #4

Closed 8dcc closed 1 year ago

8dcc commented 1 year ago

For removing lines like Loaded config from: /home/user/.config/fourmolu.yaml when formatting.

feature-not-a-bug commented 1 year ago

I appreciate the PR. I can merge this if you could make a change to handle situations where someone overrides the executable with a different formatter.

Rather than hard-coding the value, in plugin/vim_fourmolu.vim can you add a check for g:fourmolu_executable, and if it's fourmolu set a variable called g:fourmolu_quiet = " -q "?

8dcc commented 1 year ago

Yeah you are right, I will add it now.

feature-not-a-bug commented 1 year ago

Looks good, thanks for making the change