Files
dotfiles/config/nvim/after/plugin/statusline.lua
T
2026-05-25 00:32:00 +03:00

31 lines
683 B
Lua

local function keymap()
if vim.o.iminsert == 1 then
return 'RU'
else
return ''
end
end
local function fileinfo()
return string.format('%s[%s]', vim.bo.fileencoding, vim.bo.fileformat)
end
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'edge',
component_separators = { left = '|', right = '|' },
section_separators = {},
globalstatus = true,
},
sections = {
lualine_a = { 'mode', keymap },
lualine_b = { 'FugitiveHead' },
lualine_c = { 'filename' },
lualine_x = { 'filetype', fileinfo },
lualine_y = { 'progress' },
lualine_z = { 'location' },
},
extensions = { 'quickfix', 'fugitive' },
}