summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-06-09 06:58:05 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-06-09 06:58:05 -0600
commitad51c526e472ca958a2131270da9682bfa0a2492 (patch)
tree604166bb2b0ecdcfefccdafac4a8c42ab5592f4f
parent4859336ea0b05d5cb54ebadcb80d1b6982c96b0c (diff)
add tabline to lualine
-rw-r--r--lua/plugins/lualine.lua41
1 files 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'},
},
}