diff --git a/lua/lualine/extensions/toggleterm.lua b/lua/lualine/extensions/toggleterm.lua new file mode 100644 index 0000000..f1f79d7 --- /dev/null +++ b/lua/lualine/extensions/toggleterm.lua @@ -0,0 +1,12 @@ +-- Copyright (c) 2020-2021 hoob3rt +-- MIT license, see LICENSE for more details. + +local function toggleterm_statusline() return 'ToggleTerm #' .. vim.b.toggle_number end + +local M = {} + +M.sections = {lualine_a = {toggleterm_statusline}} + +M.filetypes = {'toggleterm'} + +return M