lualine.nvim/lua/lualine/extensions/mundo.lua

20 lines
325 B
Lua
Raw Normal View History

local M = {}
M.sections = {
lualine_a = {
function()
local ft = vim.opt_local.filetype:get()
2022-07-15 11:53:29 +00:00
return (ft == 'Mundo') and 'Change tree' or (ft == 'MundoDiff') and 'Change diff'
end,
},
2022-07-15 11:53:29 +00:00
lualine_y = { 'progress' },
lualine_z = { 'location' },
}
M.filetypes = {
2022-07-15 11:53:29 +00:00
'Mundo',
'MundoDiff',
}
return M