rm un-needed separator from statusline

This commit is contained in:
siduck76 2021-09-14 09:31:48 +05:30
parent 67e1038b59
commit 256ba205e1

View file

@ -69,20 +69,11 @@ components.active[1][1] = {
right_sep = { str = statusline_style.right, hl = {
fg = colors.nord_blue,
bg = colors.one_bg2,
bg = colors.lightbg,
} },
}
components.active[1][2] = {
provider = statusline_style.right,
hl = {
fg = colors.one_bg2,
bg = colors.lightbg,
},
}
components.active[1][3] = {
provider = function()
local filename = vim.fn.expand "%:t"
local extension = vim.fn.expand "%:e"
@ -91,7 +82,7 @@ components.active[1][3] = {
icon = ""
return icon
end
return icon .. " " .. filename .. " "
return " " .. icon .. " " .. filename .. " "
end,
hl = {
fg = colors.white,
@ -101,7 +92,7 @@ components.active[1][3] = {
right_sep = { str = statusline_style.right, hl = { fg = colors.lightbg, bg = colors.lightbg2 } },
}
components.active[1][4] = {
components.active[1][3] = {
provider = function()
local dir_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
return "" .. dir_name .. " "
@ -117,7 +108,7 @@ components.active[1][4] = {
} },
}
components.active[1][5] = {
components.active[1][4] = {
provider = "git_diff_added",
hl = {
fg = colors.grey_fg2,
@ -126,7 +117,7 @@ components.active[1][5] = {
icon = "",
}
-- diffModfified
components.active[1][6] = {
components.active[1][5] = {
provider = "git_diff_changed",
hl = {
fg = colors.grey_fg2,
@ -135,7 +126,7 @@ components.active[1][6] = {
icon = "",
}
-- diffRemove
components.active[1][7] = {
components.active[1][6] = {
provider = "git_diff_removed",
hl = {
fg = colors.grey_fg2,
@ -144,7 +135,7 @@ components.active[1][7] = {
icon = "",
}
components.active[1][8] = {
components.active[1][7] = {
provider = "diagnostic_errors",
enabled = function()
return lsp.diagnostics_exist "Error"
@ -153,7 +144,7 @@ components.active[1][8] = {
icon = "",
}
components.active[1][9] = {
components.active[1][8] = {
provider = "diagnostic_warnings",
enabled = function()
return lsp.diagnostics_exist "Warning"
@ -162,7 +153,7 @@ components.active[1][9] = {
icon = "",
}
components.active[1][10] = {
components.active[1][9] = {
provider = "diagnostic_hints",
enabled = function()
return lsp.diagnostics_exist "Hint"
@ -171,7 +162,7 @@ components.active[1][10] = {
icon = "",
}
components.active[1][11] = {
components.active[1][10] = {
provider = "diagnostic_info",
enabled = function()
return lsp.diagnostics_exist "Information"