linrongbin16 / fzfx.nvim

A Neovim fuzzy finder that updates on every keystroke.
https://linrongbin16.github.io/fzfx.nvim/
MIT License
122 stars 5 forks source link

Allow selectively disabling header #505

Closed savchenko closed 8 months ago

savchenko commented 9 months ago

Passing --header= to fzf_opts clears the header content, but does not remove the blank line after the prompt:

image

Perhaps allow its removal?

linrongbin16 commented 8 months ago

hi @savchenko , would you tell me, which command are your trying to remove --header option?

savchenko commented 8 months ago

Global fzf_opts:

fzf_opts = {
  "--no-separator",
  "--ansi",
  "--info=inline",
  "--layout=reverse",
  "--preview-window=hidden",
  "--border=sharp",
  "--height=100%",
  "--bind=ctrl-e:toggle",
  "--bind=ctrl-a:toggle-all",
  "--bind=ctrl-w:toggle-preview",
}

Buffers override:

buffers = {
  fzf_opts = {
    "--info=hidden --header= --padding=1"
  },
  win_opts = {
        relative = 'win',
        height = 10,
        width = 40,
        border = "none",
        zindex = 51,
    }
  }

Setting padding to 0 removes empty line on top, but not at the bottom. Anyway, this is the lowest possible priority issue :)

savchenko commented 8 months ago

Closing as nonsensical quibble. Here is the window after https://github.com/linrongbin16/fzfx.nvim/pull/517 and it looks great:

image

Who would complain about the empty line? It totally makes sense.