41 lines
793 B
Lua
41 lines
793 B
Lua
local function window()
|
|
return vim.api.nvim_win_get_number(0)
|
|
end
|
|
|
|
require('lualine').setup({
|
|
options = {
|
|
icons_enabled = true,
|
|
theme = 'dracula',
|
|
},
|
|
sections = {
|
|
lualine_a = { 'mode' },
|
|
lualine_b = { 'branch', 'diff', 'diagnostics' },
|
|
lualine_c = { {
|
|
'filename',
|
|
path = 1,
|
|
} },
|
|
lualine_x = { 'encoding', '%<0x%B', 'fileformat' },
|
|
lualine_y = { 'filetype' },
|
|
lualine_z = { 'location', window }
|
|
},
|
|
inactive_sections = {
|
|
lualine_a = {},
|
|
lualine_b = {},
|
|
lualine_c = { 'filename' },
|
|
lualine_x = { 'location', window },
|
|
lualine_y = {},
|
|
lualine_z = {}
|
|
},
|
|
tabline = {
|
|
lualine_a = { {
|
|
'tabs',
|
|
max_length = vim.o.columns / 2,
|
|
mode = 2
|
|
} },
|
|
lualine_b = {},
|
|
lualine_c = {},
|
|
lualine_x = {},
|
|
lualine_y = { 'branch' },
|
|
lualine_z = {}
|
|
}
|
|
})
|