1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-30 03:34:20 +03:00

Merge remote-tracking branch 'lobre/fix-gopls-def-integration'

This commit is contained in:
Maxime Coste 2022-12-03 08:41:10 +11:00
commit 084fc5eb5a

View File

@ -69,7 +69,7 @@ define-command -hidden -params 1 gopls-cmd %{
define-command -hidden -params 0 gopls-def %{ define-command -hidden -params 0 gopls-def %{
evaluate-commands %sh{ evaluate-commands %sh{
jump=$( gopls definition "${kak_buffile}:${kak_cursor_line}:${kak_cursor_column}" 2> /dev/null \ jump=$( gopls definition "${kak_buffile}:${kak_cursor_line}:${kak_cursor_column}" 2> /dev/null \
|sed -e 's/-.*//; s/:/ /g; q' ) |sed -e 's/-[0-9]\+:.*//; s/:/ /g; q' )
if [ -n "${jump}" ]; then if [ -n "${jump}" ]; then
printf %s\\n "evaluate-commands -try-client '${kak_opt_jumpclient}' %{ printf %s\\n "evaluate-commands -try-client '${kak_opt_jumpclient}' %{
edit ${jump} edit ${jump}