nvim-lualine / lualine.nvim

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

Question About Tabs #340

Closed vito-c closed 3 years ago

vito-c commented 3 years ago

I am trying to find a replacement for airline that is written in lua. I use airline to apply a "skin" to my tabs as well as to my status line. I don't want all my buffers in my tabs I just want the normal vanilla tabs, but I would like their style (meaning their separator to mach my status line. Is there a way to do this with lualine that I have overlooked?

Thanks!

Example:

image
shadmansaleh commented 3 years ago

You can use tabline.nvim

There's a pr adding support to tabline in shadmansaleh/lualine.nvim currently being worked on https://github.com/shadmansaleh/lualine.nvim/pull/42

vito-c commented 3 years ago

Thanks @shadmansaleh It seems like if I am going to do the following:

    enable = false
}
require('lualine').setup {
  options = {theme = 'onedark'},
  tabline = {
      lualine_c = {'filename'},
      lualine_x = { require'tabline'.tabline_tabs },
  },
  extensions = {'fzf', 'nvim-tree', 'fugitive'}
}

which then gives me the following:

image
shadmansaleh commented 3 years ago

shadmansaleh#42 has been merged now shadmansaleh/lualine.nvim has traditional tabline / bufferline support.

See #311 to know what else has changed in the fork.