habamax / vim-godot

Use vim and godot engine to make games
MIT License
498 stars 24 forks source link

Help dealing with 'res://' when jumping to symbol #27

Closed austinclem1 closed 3 years ago

austinclem1 commented 3 years ago

I'm using Coc right now and when I use it to search symbols and jump to one, it jumps to "res://whatever.gd" which doesn't exist, so it opens an empty buffer pointing to that. Any ideas about how to replace res:// with my actual working directory? Thanks

habamax commented 3 years ago

Not sure about CoC, I use YCM now and it jumps to definitions just fine.

habamax commented 3 years ago

CoC works for me too:

image

habamax commented 3 years ago

This is goto definitions, let me try search symbols...

CocSearch works.

What exactly you have issue with?

austinclem1 commented 3 years ago

huh, :CocList outline which searches symbols in the current buffer seems to work, and goto definition works. But :CocList symbols, which searches symbols for the entire workspace isn't jumping properly. For example if I try and jump to _ready() in the file Actor.gd, it opens a new buffer at 'res://Actor.gd' which doesn't exist on my file system, so it just tries to create a new file with that name

Edit: forgot to mention I'm on Windows, so maybe that has something to do with it. Also I tried digging around the vscode godot extension and Nathan Lovato's emacs godot plugin but I haven't found any obvious place where they're dropping the res:// part, but I've never worked with an lsp so not sure

habamax commented 3 years ago

Closing as it has nothing to do with vim-godot.

Feel free to add info here if needed.