25 lines
381 B
Lua
25 lines
381 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_x = { empty },
|
|
}
|
|
|
|
M.filetypes = { 'toggleterm' }
|
|
|
|
return M
|