flash.nvim icon indicating copy to clipboard operation
flash.nvim copied to clipboard

feature: prompt/win_config/relative="cursor" and negative row

Open psiho opened this issue 5 months ago • 0 comments

Did you check the docs?

  • [x] I have read all the flash.nvim docs

Is your feature request related to a problem? Please describe.

I would like to position prompt as floating window above cursor. Part of my config for this is:

    prompt = {
        enabled = true,
        win_config = {
            relative = "cursor",
            border = "rounded",
            width = 50,
            height = 1,
            row = -3,
            col = 1,
        },
    }

... but it seems negative row always get counted as negative from bottom of the screen and does not respect "relative" setting.

Describe the solution you'd like

negative "row"/"column" setting should respect "relative" setting.

Describe alternatives you've considered

Right now I'm displaying floating window below my cursor, but that is not optimal because search is mostly done in forward direction so it covers text.

Additional context

No response

psiho avatar Nov 08 '25 19:11 psiho