From 6faaa05ae59c4bc3b57c2516c3a5e3944e7c7f36 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Fri, 8 Oct 2021 03:57:05 +0600 Subject: [PATCH] Revert "fix(extension): fix some extension showing a section in whole line" This reverts commit 846e5bdabfc2bb49407a1e32ed5deec1375c3b08. --- lua/lualine/extensions/fzf.lua | 8 -------- lua/lualine/extensions/nerdtree.lua | 8 -------- lua/lualine/extensions/toggleterm.lua | 8 -------- 3 files changed, 24 deletions(-) diff --git a/lua/lualine/extensions/fzf.lua b/lua/lualine/extensions/fzf.lua index 0a59801..4afda21 100644 --- a/lua/lualine/extensions/fzf.lua +++ b/lua/lualine/extensions/fzf.lua @@ -4,18 +4,10 @@ local function fzf_statusline() return 'FZF' end -local empty = { - function() - return ' ' - end, - padding = 0, -} - local M = {} M.sections = { lualine_a = { fzf_statusline }, - lualine_x = { empty }, } M.filetypes = { 'fzf' } diff --git a/lua/lualine/extensions/nerdtree.lua b/lua/lualine/extensions/nerdtree.lua index 52de858..27b117b 100644 --- a/lua/lualine/extensions/nerdtree.lua +++ b/lua/lualine/extensions/nerdtree.lua @@ -4,18 +4,10 @@ local function get_short_cwd() return vim.fn.fnamemodify(vim.fn.getcwd(), ':~') end -local empty = { - function() - return ' ' - end, - padding = 0, -} - local M = {} M.sections = { lualine_a = { get_short_cwd }, - lualine_x = { empty }, } M.filetypes = { 'nerdtree' } diff --git a/lua/lualine/extensions/toggleterm.lua b/lua/lualine/extensions/toggleterm.lua index f0e1efa..a9be001 100644 --- a/lua/lualine/extensions/toggleterm.lua +++ b/lua/lualine/extensions/toggleterm.lua @@ -5,18 +5,10 @@ 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' }