Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guisp is not applied #50

Open
deeedob opened this issue May 30, 2024 · 0 comments
Open

guisp is not applied #50

deeedob opened this issue May 30, 2024 · 0 comments

Comments

@deeedob
Copy link

deeedob commented May 30, 2024

NVIM v0.11.0-dev-67+g0e9c92a900
Build type: RelWithDebInfo
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

Hey, found out that guisp is broken / not applied to the hl group. For example. I'll define something like this:

Color.new("blue", "#658594")
Color.new("yellow", "#c4b28a")
Color.new("red", "#c4746e")

Group.new("DiagnosticUnderlineHint", c.none, c.none, s.underline, c.blue)
Group.new("DiagnosticUnderlineInfo", c.none, c.none, s.underline, c.blue)
Group.new("DiagnosticUnderlineWarn", c.none, c.none, s.underline, c.yellow)
Group.new("DiagnosticUnderlineError", c.none, c.none, s.underline, c.red)

however, looking at Telescope highlights for instances show this: DiagnosticUnderlineErrorxxx cterm=underline gui=underline
no guisp mentioned there.

Went a step deeper and debug-printed Group:apply:

function Group:apply()
...
  if self.name == "diagnosticunderlineerror" then
    print("name is: ", self.name, " hl: ", vim.inspect(hl))
    print("key: ", vim.inspect(self.style:keys()))
  end

and in-fact, guisp is missing there too!

name is:  diagnosticunderlineerror  hl:  {
  bg = "none",
  fg = "none",
  underline = true
}

Great tool btw! would be very cool to get this sorted :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant