stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.73k stars 32 forks source link

Text Artifacts in Rename Window with Rust Attributes #35

Closed theduke closed 2 years ago

theduke commented 2 years ago

Describe the bug

I just tried out dressing and I'm getting text artifacts in the rename window when the line above the to be renamed item has Rust attributes. See below for example code.

The green text below is the artifact, it should just say Webpage. The extra text is overwritten and disappears when typing over it.

2022-04-14T18:26:28+02:00

System information

require('dressing').setup({})

To Reproduce Steps to reproduce the behavior:

  1. Open a Rust file
  2. Trigger lsp rename (on Webpage below)
#[derive(Serialize, Deserialize, Entity, Clone)]
#[factor(namespace = "semantic")]
pub struct Webpage {
}

Additional context

The relevant LSP is rust-analyzer, if that makes any difference.

stevearc commented 2 years ago

It looks like your terminal may not support the fake transparency? Try setting winblend = 0

require('dressing').setup({
  input = {
    winblend = 0
  }
})
theduke commented 2 years ago

Yeah, that was it indeed. Thanks.

The terminal is kitty.

theduke commented 2 years ago

Since Kitty is fairly popular, maybe a note in the README would be good.

stevearc commented 2 years ago

Huh... that's interesting because I use kitty. Perhaps it's the font you're using? I will admit I am no expert on terminal rendering

theduke commented 2 years ago

Odd. I'm using DejaVu Sans Mono, so a pretty standard font.

I'm on Sway, the Wayland compositor. Maybe that's related.