2021-08-25 10:55:41 +00:00
|
|
|
-- Copyright (c) 2020-2021 hoob3rt
|
|
|
|
-- MIT license, see LICENSE for more details.
|
|
|
|
|
2021-09-03 18:28:20 +00:00
|
|
|
local function toggleterm_statusline()
|
|
|
|
return 'ToggleTerm #' .. vim.b.toggle_number
|
|
|
|
end
|
|
|
|
local empty = {
|
|
|
|
function()
|
|
|
|
return ' '
|
|
|
|
end,
|
|
|
|
left_padding = 0,
|
|
|
|
right_padding = 0,
|
|
|
|
}
|
2021-08-25 10:55:41 +00:00
|
|
|
|
|
|
|
local M = {}
|
|
|
|
|
2021-08-26 19:01:42 +00:00
|
|
|
M.sections = {
|
2021-09-03 18:28:20 +00:00
|
|
|
lualine_a = { toggleterm_statusline },
|
|
|
|
lualine_c = { empty },
|
2021-08-26 19:01:42 +00:00
|
|
|
}
|
2021-08-25 10:55:41 +00:00
|
|
|
|
2021-09-03 18:28:20 +00:00
|
|
|
M.filetypes = { 'toggleterm' }
|
2021-08-25 10:55:41 +00:00
|
|
|
|
|
|
|
return M
|