Skip to content

Completion not working with the gl crate #3467

@kotatsuyaki

Description

@kotatsuyaki

The problem

I'm recently trying to write OpenGL related code with the gl crate, and found out that completion doesn't work with it. Typing gl:: and triggering completion shows nothing.

From this issue from gl-rs, it seems that this is due to the gl::* functions being generated by a build script. Is there any workarounds to make completions work with this crate?

Environment

  • version: rust-analyzer 9090c45, automatically downloaded by the coc-rust-analyzer plugin for coc.nvim
  • OS: Manjaro Linux, kernel 5.4.18
  • Editor: vim 8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions