anuvyklack / hydra.nvim

Create custom submodes and menus
1.03k stars 23 forks source link

Hint window border appears as a thick line #69

Closed farzadmf closed 1 year ago

farzadmf commented 1 year ago

Hi,

Apologies if this is a very stupid question as it's the beginning of my journey for vimscript -> Lua

When I set the hint border to any value, the hint window just appears with a thick line and no matter what I set, there's no change in there, something like this: image

As I've mostly started my config, I don't have any "fancy" colorscheme or anything, but I do have dressing.nvim (which I think is supposed to take care of the borders?)

Also, as you see in the screenshot, there's no color in there (blue, red, etc.)

Example config (note that the hint is just me testing and is nothing meaningful)

hydra({
  name = 'multi cursors',
  config = {
    hint = {
      border = 'rounded',
      position = 'bottom-right',
    },
  },
  hint = [[
    ^ hello there
    ^
    we're here _j_ does that, and _k_ does that
  ]],
  heads = {
    { 'j', '<Plug>(VM-Add-Cursor-Down)', { desc = 'cursor down' } },
    { 'k', '<Plug>(VM-Add-Cursor-Up)', { desc = 'cursor up' } },
  }
})
farzadmf commented 1 year ago

Figured it out, it's the highligh group HydraBorder (linked to FloatBorder) that we can set:

vim.api.nvim_set_hl(0, 'FloatBorder', { bg = nil })