# Link builtin autoloads nop %sh{ rm -f "$kak_config/autoload/standard-library" || true ln -sf "$kak_runtime/rc" "$kak_config/autoload/standard-library" 2>/dev/null || true rm -f "$kak_config/autoload/plugins" || true ln -sf "$kak_runtime/autoload/plugins" "$kak_config/autoload/plugins" 2>/dev/null || true } # treesitter (disabled for now) # eval %sh{kak-tree-sitter -dksvv --init "${kak_session}" --with-highlighting --with-text-objects} # kcr eval %sh{kcr init kakoune} colorscheme phenax set-option global autoreload yes set-option global incsearch true set-option global indentwidth 2 set-option global tabstop 2 set-option -add global path "**" set-option global startup_info_version 20260521 set-option global scrolloff 10,3 set-option -add global ui_options terminal_enable_mouse=false terminal_status_on_top=true # Modeline set-option global modelinefmt \ '{StatusLineExtras}%opt{lsp_modeline_progress} %opt{lsp_modeline_breadcrumbs} {StatusLineDetails}{{context_info}} {{mode_info}} %val{cursor_line}/%val{buf_line_count}:%val{cursor_char_column} {StatusLineBufname}%sh{echo "$kak_bufname" | awk -F/ "{if (NF >= 2) {print \$(NF-1) \"/\" \$NF} else {print \$NF}}"}' # Highlighters add-highlighter global/ number-lines -hlcursor -min-digits 3 -separator ' ' -relative add-highlighter global/ column '%val{cursor_char_column}' ColumnLine add-highlighter global/ line '%val{cursor_line}' RowLine add-highlighter global/ regex \h+$ 0:Error # Highlight trailing whitespaces add-highlighter global/ show-matching -previous add-highlighter global/ show-whitespaces -spc ' ' -tab '│' -lf '¬' -indent '│' hook global RegisterModified '/' %{ # Highlight search add-highlighter -override global/search regex "%reg{/}" 0:search } declare-user-mode selection map global user z ': enter-user-mode selection' -docstring 'Selection mode' # Turn all selections as "next" pattern. Press n to go to next map global selection f ': exec "%val{selection_count}n"' -docstring 'Focus selection'