aboutsummaryrefslogtreecommitdiff
path: root/autoload/build.kak
blob: e8c318905328a62febc3ba6c7d1b1626e8ffc313 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set-option global makecmd 'make -j8'

# TODO: For some reason <ret> doesnt jump to error
hook global BufSetOption filetype=(?:typescript|javascript) %{
  set-option buffer makecmd "%val{config}/scripts/tsc-vimgrep.sh"
}

hook global BufSetOption filetype=haskell %{
  set-option buffer makecmd "cabal build"
}

hook global BufSetOption filetype=rust %{
  set-option buffer makecmd "cargo build"
}