alvarosevilla95 / luatab.nvim

Tabline lua plugin for neovim
MIT License
189 stars 19 forks source link

Not working when using netrw or dirvish #11

Open jandamm opened 2 years ago

jandamm commented 2 years ago

When the current buffer is a directory (:Sexplore or :Dirvish) the title in the tabline is empty.

alvarosevilla95 commented 2 years ago

I'm afraid I can't reproduce. On directory views I see NetrwTreeListing

Screenshot 2021-12-05 at 19 58 51
jandamm commented 2 years ago

Weird, for me the name of the netrw buffer would be~/Developre/projects/advent/2021 (maybe because I have dirvish installed?). This would then be passed to vim.fn.pathshorten(vim.fn.fnamemodify(file, ':p:~:t')) which results in ''.

p00f commented 2 years ago

I don't see anything in dirvish buffers either. To reproduce, :tabedit .