diff --git a/lua/lualine/extensions/fugitive.lua b/lua/lualine/extensions/fugitive.lua index acbb24d..508bb17 100644 --- a/lua/lualine/extensions/fugitive.lua +++ b/lua/lualine/extensions/fugitive.lua @@ -6,8 +6,14 @@ local function fugitive_branch() local icon = '' -- e0a0 return icon .. ' ' .. vim.fn.FugitiveHead() end +local empty = {function() return ' ' end, left_padding=0, right_padding=0} -M.sections = {lualine_a = {fugitive_branch}, lualine_z = {'location'}} + +M.sections = { + lualine_a = {fugitive_branch}, + lualine_c = {empty}, + lualine_z = {'location'} +} M.filetypes = {'fugitive'} diff --git a/lua/lualine/extensions/fzf.lua b/lua/lualine/extensions/fzf.lua index bb3ec7c..bbb2aae 100644 --- a/lua/lualine/extensions/fzf.lua +++ b/lua/lualine/extensions/fzf.lua @@ -1,10 +1,14 @@ -- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local function fzf_statusline() return 'FZF' end +local empty = {function() return ' ' end, left_padding=0, right_padding=0} local M = {} -M.sections = {lualine_a = {fzf_statusline}} +M.sections = { + lualine_a = {fzf_statusline}, + lualine_c = {empty} +} M.filetypes = {'fzf'} diff --git a/lua/lualine/extensions/nerdtree.lua b/lua/lualine/extensions/nerdtree.lua index 53b1fcd..f6efdd6 100644 --- a/lua/lualine/extensions/nerdtree.lua +++ b/lua/lualine/extensions/nerdtree.lua @@ -1,10 +1,14 @@ -- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local function get_short_cwd() return vim.fn.fnamemodify(vim.fn.getcwd(), ':~') end +local empty = {function() return ' ' end, left_padding=0, right_padding=0} local M = {} -M.sections = {lualine_a = {get_short_cwd}} +M.sections = { + lualine_a = {get_short_cwd}, + lualine_c = {empty} +} M.filetypes = {'nerdtree'} diff --git a/lua/lualine/extensions/quickfix.lua b/lua/lualine/extensions/quickfix.lua index 11c3f5b..e5f01ee 100644 --- a/lua/lualine/extensions/quickfix.lua +++ b/lua/lualine/extensions/quickfix.lua @@ -15,6 +15,7 @@ local function title() end return vim.fn.getqflist({title = 0}).title end +local empty = {function() return ' ' end, left_padding=0, right_padding=0} local M = {} @@ -26,6 +27,7 @@ end M.sections = { lualine_a = {label}, lualine_b = {title}, + lualine_c = {empty}, lualine_z = {'location'} } diff --git a/lua/lualine/extensions/toggleterm.lua b/lua/lualine/extensions/toggleterm.lua index f1f79d7..e936dfa 100644 --- a/lua/lualine/extensions/toggleterm.lua +++ b/lua/lualine/extensions/toggleterm.lua @@ -2,10 +2,14 @@ -- MIT license, see LICENSE for more details. local function toggleterm_statusline() return 'ToggleTerm #' .. vim.b.toggle_number end +local empty = {function() return ' ' end, left_padding=0, right_padding=0} local M = {} -M.sections = {lualine_a = {toggleterm_statusline}} +M.sections = { + lualine_a = {toggleterm_statusline}, + lualine_c = {empty} +} M.filetypes = {'toggleterm'}