habamax / vim-godot

Use vim and godot engine to make games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

austinclem1 opened this issue · comments

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

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

CoC works for me too:

image

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

CocSearch works.

What exactly you have issue with?

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

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

Feel free to add info here if needed.