Merge remote-tracking branch 'lobre/fix-gopls-def-integration'
This commit is contained in:
commit
084fc5eb5a
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user