camspiers / snap

A fast finder system for neovim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

close/replace [No Name] buffer on selecting the file in snap

zenobht opened this issue · comments

Not a bug as such.

Steps to reproduce

  1. open nvim without arguments. It creates an empty [No Name] buffer.
  2. Select a file in snap, it should replace the [No Name] buffer.
  3. But snap creates a new buffer.
  4. We can see 2 buffers in the tabline. One of which is [No Name].
  5. This [No Name] buffer is not listed in snap buffers call.

In telescope.nvim/fzf.vim it would close/replace the [No Name] buffer.
If you open a file using :e file.txt, this will also replace the [No Name] buffer.

Yes, this, pretty please. :)