AutoYADM commit: 2025-06-06 15:24:41
This commit is contained in:
parent
97227fd761
commit
d8bbe8da60
1 changed files with 24 additions and 9 deletions
|
@ -145,13 +145,28 @@ hook -group lsp-filetype-markdown global BufSetOption filetype=markdown %{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# can override this to customize what's rendered in the menu
|
# # can be empty, global, or file
|
||||||
define-command -override -hidden lsp-perform-code-action -params 1.. -docstring "Called on :lsp-code-actions" %{
|
# declare-option -hidden str harper_add ""
|
||||||
nop %sh{
|
# define-command -hidden harper-add -params 1 %{
|
||||||
if printf '%s' "$kak_opt_lsp_servers" | grep -q 'harper-ls'; then
|
# set-option window harper_add %arg{1}
|
||||||
notify-send "harper time"
|
# lsp-code-actions -auto-single
|
||||||
fi
|
# }
|
||||||
}
|
|
||||||
lsp-menu %arg{@}
|
# # can override this to customize what's rendered in the menu
|
||||||
}
|
# # Each code action is two args: its name, and the corresponding command
|
||||||
|
# define-command -override -hidden lsp-perform-code-action -params 1.. -docstring "Called on :lsp-code-actions" %{
|
||||||
|
# evaluate-commands %sh{
|
||||||
|
# # harper specific filtering
|
||||||
|
# if printf '%s' "$kak_opt_lsp_servers" | grep -q 'harper-ls'; then
|
||||||
|
# if [ "$kak_opt_harper_add" = "global" ]; then
|
||||||
|
# # filter and keep only
|
||||||
|
# echo "echo -debug 'harper adding global'"
|
||||||
|
# fi
|
||||||
|
# fi
|
||||||
|
# echo "echo -debug dumping $# code actions args:"
|
||||||
|
# echo "echo -debug %arg{@}"
|
||||||
|
|
||||||
|
# }
|
||||||
|
# lsp-menu %arg{@}
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue