aboutsummaryrefslogtreecommitdiff
path: root/autoload/build.kak
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-06-06 00:21:24 +0530
committerAkshay Nair <phenax5@gmail.com>2026-06-06 00:21:24 +0530
commit1aa539001e0daceafe924c75821c0542b6e322bf (patch)
tree677ca773da6538100a765835e8fdf537756db617 /autoload/build.kak
parent6fb8737890f5c7337b4672aa1b09ab8266d10b50 (diff)
downloadkakoune-config-1aa539001e0daceafe924c75821c0542b6e322bf.tar.gz
kakoune-config-1aa539001e0daceafe924c75821c0542b6e322bf.zip
Switch makecmd to be global + disable treesitter
Diffstat (limited to 'autoload/build.kak')
-rw-r--r--autoload/build.kak12
1 files changed, 4 insertions, 8 deletions
diff --git a/autoload/build.kak b/autoload/build.kak
index 903ce47..d8a676c 100644
--- a/autoload/build.kak
+++ b/autoload/build.kak
@@ -1,14 +1,10 @@
set-option global makecmd 'echo "Build command not set"; exit 1'
-# TODO: For some reason <ret> doesnt jump to error
-hook global BufSetOption filetype=(?:typescript|javascript|jsx|tsx) %{
- 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" }
+define-command makecmd-set-tsc %{ set-option buffer makecmd "%val{config}/scripts/tsc-vimgrep.sh" }
+define-command makecmd-set-cabal %{ set-option buffer makecmd "cabal build" }
+define-command makecmd-set-cargo %{ set-option buffer makecmd "cargo build" }
+# Overriding the make command
provide-module make-override %{
define-command -params .. -override -docstring %{
make [<arguments>]: make utility wrapper