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

Golang Text objects not working #1920

Closed
rasa-silva opened this issue Apr 1, 2022 · 1 comment · Fixed by #2153
Closed

Golang Text objects not working #1920

rasa-silva opened this issue Apr 1, 2022 · 1 comment · Fixed by #2153
Labels
A-tree-sitter Area: Tree-sitter C-bug Category: This is a bug

Comments

@rasa-silva
Copy link
Contributor

Motions like "go to next function" and "go to previous comment" do nothing on a Golang file.
They work as expected for Rust files.

Tested on latest release 22.03.

@the-mikedavis the-mikedavis added C-bug Category: This is a bug A-tree-sitter Area: Tree-sitter labels Apr 1, 2022
@wsw0108
Copy link

wsw0108 commented Apr 6, 2022

nvim-treesitter/nvim-treesitter-textobjects#160

let query = Query::new(lang, &query_text).ok()?;

Maybe log error here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tree-sitter Area: Tree-sitter C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants