AutoYADM commit: 2025-05-16 22:13:01

This commit is contained in:
Daniel Fichtinger 2025-05-16 22:13:01 -04:00
parent 24cf0bb034
commit 3b6cbf8406
2 changed files with 18 additions and 3 deletions

View file

@ -1,13 +1,27 @@
declare-option -hidden str fishr_path %sh{ dirname "$kak_source" }
provide-module fishr %~
define-command fish -params 1.. -docstring %{
fish [args...] code: Execute provided fish code, evaluating its output as Kakoune commands.
fish [code]: Execute provided fish code, evaluating its output as Kakoune commands.
} %{
evaluate-commands %sh{
fish -c "eval $@"
}
}
define-command fish-keys -params 1.. -docstring %{
fish-keys [code]: Execute provided fish code, executing its output with execute-keys.
} %{
execute-keys %sh{
fish -c "eval $@"
}
}
require-module fish
require-module kak
add-highlighter shared/kakrc/code/fish regex (?:\s|\A)\K(fish|fish-keys)(?:(?=\s)|\z) 0:keyword
add-highlighter shared/kakrc/fish1 region -recurse '\{' '(^|\h)(fish|fish-keys)([\s{}\w%/$-|''"])* %\{\K' '\}' ref fish
add-highlighter shared/kakrc/fish2 region -recurse '\(' '(^|\h)(fish|fish-keys)([\s{}\w%/$-|''"])* %\(\K' '\)' ref fish
add-highlighter shared/kakrc/fish3 region -recurse '\[' '(^|\h)(fish|fish-keys)([\s{}\w%/$-|''"])* %\[\K' '\]' ref fish
add-highlighter shared/kakrc/fish4 region -recurse '<' '(^|\h)(fish|fish-keys)([\s{}\w%/$-|''"])* %<\K' '>' ref fish
~

View file

@ -1,5 +1,6 @@
eval %sh{ kak-tree-sitter -vvvvv -dks --init $kak_session }
colorscheme ashen
require-module fishr
set-option global ashen_dynamic_cursor true
set-option global ashen_eol_cursor true
# disable clippy