nvim/lua/plugins/lualine.lua
2024-03-22 10:18:26 +00:00

117 lines
2.5 KiB
Lua

return {
'nvim-lualine/lualine.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
'Isrothy/lualine-diagnostic-message'
},
config = function()
local statusline = require('arrow.statusline')
require('lualine').setup {
options = {
theme = 'bamboo',
disabled_filetypes = {
statusline = {},
winbar = { 'dap-repl', 'dapui_console' },
},
section_separators = { left = '', right = '' },
},
globalstatus = true,
extensions = { 'aerial', 'oil', 'toggleterm' },
sections = {
lualine_b = {
'branch',
'diff',
{
'diagnostics',
sources = { 'nvim_diagnostic' }
}
},
lualine_c = {
'hostname',
'getcwd',
{ 'filename', path = 1, file_status = true }
},
lualine_y = {
'searchcount',
'progress'
},
},
inactive_sections = {
lualine_c = {
'getcwd',
{
'filename',
path = 1,
file_status = true
}
}
},
winbar = {
lualine_a = {
{
'filename',
path = 0,
file_status = true,
separator = { left = '', right = '' },
},
{
statusline.text_for_statusline_with_icons
}
},
lualine_b = {
{
'filesize',
},
{
'diagnostic-message',
icons = {
error = '',
warn = '',
info = '',
hint = '',
}
}
},
lualine_c = {
},
lualine_x = {},
lualine_y = {},
lualine_z = {
}
},
inactive_winbar = {
lualine_a = {
{
'filename',
path = 0,
file_status = true,
separator = { left = '', right = '' },
}
},
lualine_b = {
{
'filesize',
},
},
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = {}
},
tabline = {
lualine_a = {},
lualine_b = {},
lualine_c = {
{
'tabs',
mode = 2,
}
},
lualine_x = {},
lualine_y = {},
lualine_z = {}
},
}
end,
}