Skip to content

Go to Definition doesn't work when using with Vim + ALE #2536

@coffeebe4code

Description

@coffeebe4code

I'm trying to solve a specific minor thing. and I'm trying to determine how to do so.

I have Vim, and I use ALE for my zls. I love, and usually need to look through the zig source code for the std library, or other modules as well which may be on my local, or in zig-cache because they were installed with the zon package method.

When i "Go to Definition" on a method in my source where zls is on the root dir. I can successfully navigate to wherever it is.

take for example:
~/zig/0.16.0/lib/std/Io/Dir.zig

/// Test accessing `sub_path`.
///
/// ...
pub fn access(dir: Dir, io: Io, sub_path: []const u8, options: AccessOptions) AccessError!void {
    return io.vtable.dirAccess(io.userdata, dir, sub_path, options);
}

I was able to use Go to Definition on std.Io.Dir.access. However, once in this file, or any other local downloaded module, I can't now Go to Definition for io.vtable.dirAccess.

How would I continue to navigate? Is this something zls could solve?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions