Revert "fix(extension): fix some extension showing a section in whole line"

This reverts commit 846e5bdabf.
This commit is contained in:
shadmansaleh 2021-10-08 03:57:05 +06:00
parent 90e1dc074f
commit 6faaa05ae5
3 changed files with 0 additions and 24 deletions

View File

@ -4,18 +4,10 @@ local function fzf_statusline()
return 'FZF' return 'FZF'
end end
local empty = {
function()
return ' '
end,
padding = 0,
}
local M = {} local M = {}
M.sections = { M.sections = {
lualine_a = { fzf_statusline }, lualine_a = { fzf_statusline },
lualine_x = { empty },
} }
M.filetypes = { 'fzf' } M.filetypes = { 'fzf' }

View File

@ -4,18 +4,10 @@ local function get_short_cwd()
return vim.fn.fnamemodify(vim.fn.getcwd(), ':~') return vim.fn.fnamemodify(vim.fn.getcwd(), ':~')
end end
local empty = {
function()
return ' '
end,
padding = 0,
}
local M = {} local M = {}
M.sections = { M.sections = {
lualine_a = { get_short_cwd }, lualine_a = { get_short_cwd },
lualine_x = { empty },
} }
M.filetypes = { 'nerdtree' } M.filetypes = { 'nerdtree' }

View File

@ -5,18 +5,10 @@ local function toggleterm_statusline()
return 'ToggleTerm #' .. vim.b.toggle_number return 'ToggleTerm #' .. vim.b.toggle_number
end end
local empty = {
function()
return ' '
end,
padding = 0,
}
local M = {} local M = {}
M.sections = { M.sections = {
lualine_a = { toggleterm_statusline }, lualine_a = { toggleterm_statusline },
lualine_x = { empty },
} }
M.filetypes = { 'toggleterm' } M.filetypes = { 'toggleterm' }