tamton-aquib / staline.nvim

A modern lightweight statusline and bufferline plugin for neovim in lua.
MIT License
380 stars 17 forks source link

Staline with nvim-tree shows the same thing #31

Closed orangethewell closed 2 years ago

orangethewell commented 2 years ago

When I started using Staline and nvim-tree, the buffers doesn't show separated lines, but the same line in both. When my cursor is on nvim-tree, the staline show the nvim-tree status, but when I'm writing code, the nvim-tree buffer doesn't show nvim-tree or anything related, just the current bufferline info.

tamton-aquib commented 2 years ago

Heyyo @orangethewell , This is a known limitation of staline as this feature was more tailored towards floating windows. example: Telescope image

This is because staline uses a single function for active and inactive buffers. Also, most people nowadays are using a global statusline with vim.opt.laststatus=3 instead of 2. Maybe you could try that out. 😅

tamton-aquib commented 2 years ago

Closing due to inactivity, feel free to open if the problem persists 👍🏻