nvim-tree-preview.lua icon indicating copy to clipboard operation
nvim-tree-preview.lua copied to clipboard

[Feature] keep floating nvim-tree when toggle focus

Open egoarka opened this issue 1 year ago • 1 comments

Basically, when I focus into preview window, my floating nvim-tree disappears

require 'nvim-tree'.setup{
  on_attach = my_on_attach,
  view = {
    float = {
      enable = true,
    },
  },
}

egoarka avatar Oct 25 '24 16:10 egoarka

Thanks for reporting. I'll accept a PR for this but don't have time to work on it right now myself.

b0o avatar Oct 25 '24 21:10 b0o

Maybe this Nvim-tree option is what you want @egoarka:

require 'nvim-tree'.setup{
  on_attach = my_on_attach,
  view = {
    float = {
      enable = true,
      quit_on_focus_loss = false, -- Add this line
    },
  },
}

idr4n avatar Jul 04 '25 21:07 idr4n

Closing this for now. If anyone still runs into this please comment here, happy to re-open it.

b0o avatar Jul 10 '25 02:07 b0o