dotfiles/nvim/lua/plugins/lualine.lua

58 lines
1.4 KiB
Lua
Raw Permalink Normal View History

2024-09-01 18:25:04 -04:00
return {
{
'nvim-lualine/lualine.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
config = function()
local current_indent = function()
local output = ''
if vim.o.expandtab then
output = output .. 'S'
else
output = output .. 'T'
end
output = output .. ':' .. vim.o.shiftwidth
if vim.o.shiftwidth ~= vim.o.tabstop then
output = output .. ':' .. vim.o.tabstop
end
return output
end
2024-09-01 18:25:04 -04:00
require('lualine').setup {
options = {
2024-12-30 16:24:14 -05:00
globalstatus = false,
2024-09-01 18:57:17 -04:00
disabled_filetypes = {
statusline = {
'dashboard',
},
},
2024-09-01 18:25:04 -04:00
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch', 'diff', 'diagnostics' },
lualine_c = { { 'filename', path = 2 } },
lualine_x = { 'encoding', 'fileformat', 'filetype', current_indent },
lualine_y = { 'progress' },
lualine_z = { 'location' },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {},
},
2024-09-01 18:25:04 -04:00
extensions = {
'lazy',
'mason',
2024-10-07 18:30:25 -04:00
'nvim-tree',
2024-09-01 18:25:04 -04:00
'nvim-dap-ui',
2024-09-01 18:43:26 -04:00
'toggleterm',
2024-09-01 18:25:04 -04:00
},
}
end,
},
}