simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

rust inlay_hints render bug #311

Closed Meigumikato closed 1 year ago

Meigumikato commented 1 year ago
image

system: macOS 13.1 neovim: NVIM v0.8.2

eatgrass commented 1 year ago

same problem rust-analyzer version: 2023-01-02

Meigumikato commented 1 year ago

code snippet

#[derive(Debug)]
enum Color {
    Black,
    Blue,
    Brown,
}

#[derive(Debug)]
struct ShoesColor(Color);
impl ShoesColor {
    fn new(c: Color) -> Self {
        Self(c)
    }
}

fn main() {
    let shoes = ShoesColor::new(Color::Red);  // <- **edit on this line after will trigger this bug**

}
MichaelMandel26 commented 1 year ago

Duplicate of #300 Fixed in #307.

You might want to use the fork for now, as it doesn't look like the PR is going to be merged very soon.

  -- use 'simrat39/rust-tools.nvim'
  use 'kdarkhan/rust-tools.nvim'
FrankReh commented 1 year ago

I'll second that the #307 PR fixes the problem.

Meigumikato commented 1 year ago

thanks

MichaelMandel26 commented 1 year ago

@FrankReh I have replaced the plugin in my config with the fork from kdarkhan and it works good for me :)

rsignavong commented 1 year ago

is this repository still maintained?