colorscheme default
set-option global tabstop 4
set-option global indentwidth 4
-set-option global scrolloff 10,10
+
+
+# dynamic scrolloff
+# ─────────────────
+hook global WinCreate [^*].* %{
+ hook -once window WinDisplay .* %{
+ hook window WinResize [0-9]*\.[0-9]* %{
+ set-option window scrolloff %sh{
+ printf '%u,%u' "$(($kak_window_height / 6))" "$(($kak_window_width / 8))"
+ }
+ }
+ }
+}
# Different Cursor color in insert mode
# ─────────────────────────────────────