Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

goto definition being very slow? #6

Open
flokli opened this issue Nov 11, 2022 · 2 comments
Open

goto definition being very slow? #6

flokli opened this issue Nov 11, 2022 · 2 comments

Comments

@flokli
Copy link

flokli commented Nov 11, 2022

I've been giving buf-language-server a try.

I added it to my ~/.config/helix/languages.toml:

[[language]]
name = "protobuf"
scope = "source.proto"
injection-regex = "protobuf"
file-types = ["proto"]
roots = []
comment-token = "//"
language-server = { command = "bufls", args = [ "serve" ] }
indent = { tab-width = 2, unit = "  " }

I typed gd on a symbol. For some reason, it takes 3-5 seconds for it to jump, even if the symbol is in the same file?

@rhbuf
Copy link

rhbuf commented Nov 25, 2022

What version of Helix are you using and what OS/ARCH are you running under? We've since updated the version of buf used by the language server, so if you can pull latest and try again this could help us debug.

@flokli
Copy link
Author

flokli commented Nov 29, 2022

This is on NixOS, x86_64-linux, using Helix 22.08.1. bufls was 2022-08-19.

I assume you're referring to 1e927a5. I updated my version of bufls in $PATH to point to that, same behaviour.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants