AutoYADM commit: 2025-06-10 00:09:05
This commit is contained in:
parent
66ed93369c
commit
e011abfe4e
2 changed files with 25 additions and 9 deletions
|
@ -221,7 +221,7 @@ define-command lsp-diag-set %{
|
|||
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'"
|
||||
echo "info 'lsp-diag failed to set'"
|
||||
else
|
||||
echo "nop"
|
||||
fi
|
||||
|
@ -233,9 +233,9 @@ define-command -params 2 lsp-diag-query %{
|
|||
printf 'query %s %s\n' "$1" "$2" >"$kak_opt_diagpipe_in"
|
||||
read result < "$kak_opt_diagpipe_out"
|
||||
if [ "$result" = "true" ]; then
|
||||
echo "info 'true'"
|
||||
echo "trigger-user-hook lsp-diag-hover-true"
|
||||
else
|
||||
echo "info 'false'"
|
||||
echo "trigger-user-hook lsp-diag-hover-false"
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
@ -244,6 +244,21 @@ hook global KakEnd .* %{
|
|||
nop %sh{
|
||||
printf 'exit\n' >"$kak_opt_diagpipe_in"
|
||||
read result < "$kak_opt_diagpipe_out"
|
||||
notify-send "killing"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hook global User lsp-diag-hover-false %{
|
||||
info 'false detected'
|
||||
}
|
||||
|
||||
hook global User lsp-diag-hover-true %{
|
||||
info 'true detected'
|
||||
}
|
||||
|
||||
hook global NormalIdle .* %{
|
||||
lsp-diag-query %val{cursor_line} %val{cursor_column}
|
||||
}
|
||||
|
||||
hook global WinSetOption lsp_inline_diagnostics=.* %{
|
||||
lsp-diag-set
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue