nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.28k stars 468 forks source link

Feat: Add `ignore_focus` option for tabline #1336

Open davidscholberg opened 5 days ago

davidscholberg commented 5 days ago

Requested feature

The existing ignore_focus option allows you to tell the statusline to ignore when certain file types are focused. Would be nice to also have this option for the tabline as well (apologies if there's already a way to do this).

Motivation

When switching between a file buffer and nvim-tree, it would be nice to have the current tab keep the buffer name as the tab name by telling the tabline to ignore nvim-tree.

florianAriasu commented 4 days ago

Hi! Neovim does not provide a native ignore_focus feature but you can create a function manually to do this in your init.lua file.