Skip to content

Commit

Permalink
format with ormolu where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 30, 2020
1 parent 52059d4 commit f21c607
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dotfiles/kakoune.nix
Expand Up @@ -128,6 +128,24 @@ in {
option = ".*.elm";
}

# Haskell
{
name = "WinCreate";
option = ".*.hs";
commands = ''
evaluate-commands %sh{
if which ormolu > /dev/null; then
echo 'set-option buffer formatcmd ormolu'
fi
}
'';
}
{
commands = "format";
name = "BufWritePre";
option = ".*.hs";
}

# Indents
{
name = "WinCreate";
Expand Down

0 comments on commit f21c607

Please sign in to comment.