From 8648ee6d06966e609997214c89ba8cfe0425927a Mon Sep 17 00:00:00 2001 From: Daniel Enrique Date: Wed, 25 Aug 2021 06:55:41 -0400 Subject: [PATCH] Add toggleterm extension. Add # symbol. --- lua/lualine/extensions/toggleterm.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/lualine/extensions/toggleterm.lua 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