AutoYADM commit: 2025-06-09 18:55:37

This commit is contained in:
Daniel Fichtinger 2025-06-09 18:55:37 -04:00
parent 0a173e7323
commit f25709871c
2 changed files with 32 additions and 6 deletions

View file

@ -216,8 +216,8 @@ define-command lsp-check-inline-diagnostic %{
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
printf 'set %s\n' "$kak_opt_lsp_inline_diagnostics" >"$kak_opt_diagpipe_in"
read result < "$kak_opt_diagpipe_out"
if [ "$result" != "ok" ]; then
echo "info 'failed'"
else
@ -228,8 +228,8 @@ define-command lsp-diag-set %{
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
printf 'query %s %s\n' "$1" "$2" >"$kak_opt_diagpipe_in"
read result < "$kak_opt_diagpipe_out"
if [ "$result" = "true" ]; then
echo "info 'true'"
else