chore: update extensions to have empty section_c so transitional separators can work

closes #23
This commit is contained in:
shadmansaleh 2021-08-27 01:01:42 +06:00
parent cfb6e3db14
commit 1c57d7e61c
5 changed files with 24 additions and 4 deletions

View File

@ -6,8 +6,14 @@ local function fugitive_branch()
local icon = '' -- e0a0 local icon = '' -- e0a0
return icon .. ' ' .. vim.fn.FugitiveHead() return icon .. ' ' .. vim.fn.FugitiveHead()
end 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'} M.filetypes = {'fugitive'}

View File

@ -1,10 +1,14 @@
-- Copyright (c) 2020-2021 hoob3rt -- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details. -- MIT license, see LICENSE for more details.
local function fzf_statusline() return 'FZF' end local function fzf_statusline() return 'FZF' end
local empty = {function() return ' ' end, left_padding=0, right_padding=0}
local M = {} local M = {}
M.sections = {lualine_a = {fzf_statusline}} M.sections = {
lualine_a = {fzf_statusline},
lualine_c = {empty}
}
M.filetypes = {'fzf'} M.filetypes = {'fzf'}

View File

@ -1,10 +1,14 @@
-- Copyright (c) 2020-2021 hoob3rt -- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details. -- MIT license, see LICENSE for more details.
local function get_short_cwd() return vim.fn.fnamemodify(vim.fn.getcwd(), ':~') end 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 = {} local M = {}
M.sections = {lualine_a = {get_short_cwd}} M.sections = {
lualine_a = {get_short_cwd},
lualine_c = {empty}
}
M.filetypes = {'nerdtree'} M.filetypes = {'nerdtree'}

View File

@ -15,6 +15,7 @@ local function title()
end end
return vim.fn.getqflist({title = 0}).title return vim.fn.getqflist({title = 0}).title
end end
local empty = {function() return ' ' end, left_padding=0, right_padding=0}
local M = {} local M = {}
@ -26,6 +27,7 @@ end
M.sections = { M.sections = {
lualine_a = {label}, lualine_a = {label},
lualine_b = {title}, lualine_b = {title},
lualine_c = {empty},
lualine_z = {'location'} lualine_z = {'location'}
} }

View File

@ -2,10 +2,14 @@
-- MIT license, see LICENSE for more details. -- MIT license, see LICENSE for more details.
local function toggleterm_statusline() return 'ToggleTerm #' .. vim.b.toggle_number end local function toggleterm_statusline() return 'ToggleTerm #' .. vim.b.toggle_number end
local empty = {function() return ' ' end, left_padding=0, right_padding=0}
local M = {} local M = {}
M.sections = {lualine_a = {toggleterm_statusline}} M.sections = {
lualine_a = {toggleterm_statusline},
lualine_c = {empty}
}
M.filetypes = {'toggleterm'} M.filetypes = {'toggleterm'}