From ad51c526e472ca958a2131270da9682bfa0a2492 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 9 Jun 2023 06:58:05 -0600 Subject: add tabline to lualine --- lua/plugins/lualine.lua | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index be54a4f..a0b0a92 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -1,11 +1,46 @@ return { 'nvim-lualine/lualine.nvim', + dependencies = { + { 'nvim-tree/nvim-web-devicons', opt = {} }, + }, opts = { options = { + theme = 'dracula', icons_enabled = true, - theme = 'dracula-nvim', - -- component_separators = '|', - -- section_separators = '', + component_separators = { left = '', right = '' }, + section_separators = { left = '', right = '' }, + }, + sections = { + lualine_a = {'mode'}, + lualine_b = {'branch', 'diff', 'diagnostics'}, + lualine_c = {'filename'}, + lualine_x = {'encoding', 'fileformat', 'filetype'}, + lualine_y = {'progress'}, + lualine_z = {'location'}, + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = {'filename'}, + lualine_x = {'location'}, + lualine_y = {}, + lualine_z = {} + }, + -- Very basic tabline support, for more + -- https://github.com/kdheepak/tabline.nvim + -- as it supports binding buffers to tabs so they can work as workspaces + tabline = { + lualine_a = {'buffers'}, + lualine_b = {}, + lualine_c = {}, + lualine_x = {}, + lualine_y = {}, + lualine_z = {'tabs'}, }, + -- Window specific bar, appears below tabline + -- and inside window + winbar = {}, + inactive_winbar = {}, + extensions = {'neo-tree'}, }, } -- cgit v1.2.3-54-g00ecf