Skip to content

an active hydra prevents floating windows from appearing #70

@eldritch-cookie

Description

@eldritch-cookie

i made a hydra as follows

local function goto_next()
  vim.diagnostic.jump({count = 1,float = true})
end
local function goto_prev()
  vim.diagnostic.jump({count = 1,float = true})
end
Hydra({
  name = "diagnostic",
  mode = "n",
  body = "<leader>D",
  -- :h hydra-config
  config = {
    color = "red",
  },
  -- :h hydra-heads
  heads = {
    {"j",goto_next,{desc = "go to next diagnostic"}},
    {"k",goto_prev,{desc = "go to prev diagnostic"}},
  },
})

the floating window only appears after i press esc

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