AutoYADM commit: 2025-06-09 18:39:42

This commit is contained in:
Daniel Fichtinger 2025-06-09 18:39:42 -04:00
parent eafc2ae303
commit 0a173e7323
2 changed files with 24 additions and 2 deletions

View file

@ -213,3 +213,27 @@ hook -group lsp-filetype-typst global BufSetOption filetype=typst %{
define-command lsp-check-inline-diagnostic %{
# we write a python script for this
}
define-command lsp-diag-set %{
evaluate-commands %sh{
printf 'set %s\n' "$kak_opt_lsp_inline_diagnostics" >/tmp/diag-in
read result < /tmp/diag-out
if [ "$result" != "ok" ]; then
echo "info 'failed'"
else
echo "nop"
fi
}
}
define-command -params 2 lsp-diag-query %{
evaluate-commands %sh{
printf 'query %s %s\n' "$1" "$2" >/tmp/diag-in
read result < /tmp/diag-out
if [ "$result" = "true" ]; then
echo "info 'true'"
else
echo "info 'false'"
fi
}
}