rm un-needed separator from statusline

This commit is contained in:
siduck76 2021-09-14 09:31:48 +05:30
parent 67e1038b59
commit 256ba205e1
1 changed files with 11 additions and 20 deletions

View File

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