2f801ed622
* Deprecate upper & lower option. These does not make much sense and `format` option can provide same results * Unify padding options * Add persistent notices * Make separators use left/right keys to specify left right instead of sequence * Rename format -> fmt * Rename condition -> cond * Rename disable_text -> icon_only * Unify color_error,warning,info,hint under diagnostics_color * Unify color_added,modified,removed hint under diff_color
24 lines
380 B
Lua
24 lines
380 B
Lua
-- Copyright (c) 2020-2021 hoob3rt
|
|
-- MIT license, see LICENSE for more details.
|
|
|
|
local function toggleterm_statusline()
|
|
return 'ToggleTerm #' .. vim.b.toggle_number
|
|
end
|
|
local empty = {
|
|
function()
|
|
return ' '
|
|
end,
|
|
padding = 0,
|
|
}
|
|
|
|
local M = {}
|
|
|
|
M.sections = {
|
|
lualine_a = { toggleterm_statusline },
|
|
lualine_c = { empty },
|
|
}
|
|
|
|
M.filetypes = { 'toggleterm' }
|
|
|
|
return M
|