From c203b56a3f99dd17714457825274cc2b6bc6ad10 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Tue, 25 May 2021 17:07:37 +0530 Subject: [PATCH] show term insert mode in statusline --- lua/statusline.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/statusline.lua b/lua/statusline.lua index 5c99210..4e32bc8 100644 --- a/lua/statusline.lua +++ b/lua/statusline.lua @@ -139,7 +139,9 @@ gls.right[4] = { } local current_Mode = alias[vim.fn.mode()] - if current_Mode ~= nil then + if current_Mode == nil then + return " Terminal " + else return " " .. current_Mode .. " " end end,