58 lines
1.4 KiB
Lua
58 lines
1.4 KiB
Lua
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
|
|
|
|
require('lualine').setup {
|
|
options = {
|
|
globalstatus = false,
|
|
disabled_filetypes = {
|
|
statusline = {
|
|
'dashboard',
|
|
},
|
|
},
|
|
},
|
|
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 = {},
|
|
},
|
|
extensions = {
|
|
'lazy',
|
|
'mason',
|
|
'nvim-tree',
|
|
'nvim-dap-ui',
|
|
'toggleterm',
|
|
},
|
|
}
|
|
end,
|
|
},
|
|
}
|