Skip to content

Commit

Permalink
add config for elm-format
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 5, 2020
1 parent 8a2f70c commit 31ab23f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dotfiles/kakoune.nix
Expand Up @@ -94,6 +94,24 @@ in {
name = "BufWritePre";
option = ".*.nix";
}

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

keyMappings = [
Expand Down

0 comments on commit 31ab23f

Please sign in to comment.