Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evil-jump does not integrate well with go-mode #1337

Open
Miciah opened this issue Jul 20, 2020 · 0 comments · May be fixed by #1338
Open

evil-jump does not integrate well with go-mode #1337

Miciah opened this issue Jul 20, 2020 · 0 comments · May be fixed by #1338

Comments

@Miciah
Copy link
Contributor

Miciah commented Jul 20, 2020

Issue type

  • Enhancement request

Environment

Emacs version: GNU Emacs 28.0.50 (build 21, x86_64-pc-linux-gnu, cairo version 1.14.8) of 2020-07-18
Operating System: Red Hat Enterprise Linux Workstation release 7.6 (Maipo)
Evil version: Evil version evil-git-2bc6ca3
Evil installation type: manual
Graphical/Terminal: X
Tested in a make emacs session (see CONTRIBUTING.md): Yes

Reproduction steps

  • Start Emacs using make emacs.
  • Install and activate go-mode.
  • Load go-mode (M-x (require 'go-mode) Enter)
  • Edit a Go file (: e hello.go Enter).
  • Enter some Go code with a function definition and a call to that function:
package main

import (
	"fmt"
)

func foo() {
	fmt.Println("Hello, world!")
}

func main() {
	foo()
}
  • Put the cursor on the reference (in the above example, on "foo" in "main").
  • Press C-c C-j (godef-jump) to jump to the definition.
  • Press C-o (evil-jump-backward) to jump back to the function call.

Expected behavior

C-c C-j jumps to the definition of "foo", and C-o should jump back to the function call.

Actual behavior

C-c C-j jumps to the definition of "foo", and C-o does nothing.

Further notes

Evil Collection binds g d to godef-jump in go-mode.

@Miciah Miciah linked a pull request Jul 20, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant