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