Improves statusline for QuickFix and its contrast

main
zoomiti 4 months ago
parent 051df3682f
commit 2369fb36e8

@ -459,19 +459,19 @@ local highlights = {
["NORMAL"] = { ["NORMAL"] = {
["Left"] = { fg = "#c8c6c5", bg = "#2e2828", bold = true, }, ["Left"] = { fg = "#c8c6c5", bg = "#2e2828", bold = true, },
["Right"] = { fg = "#c8c6c5", bg = "#2e2828", }, ["Right"] = { fg = "#c8c6c5", bg = "#2e2828", },
["Secondary"] = { fg = "#807970", bg = "#423838", }, ["Secondary"] = { fg = "#807970", bg = "#2e2828", },
["Middle"] = { fg = "#423838", bg = "#807970", } ["Middle"] = { fg = "#423838", bg = "#807970", }
}, },
["VISUAL"] = { ["VISUAL"] = {
["Left"] = { fg = "#8c9440", bg = "#2e2828", bold = true, }, ["Left"] = { fg = "#8c9440", bg = "#2e2828", bold = true, },
["Right"] = { fg = "#8c9440", bg = "#2e2828", }, ["Right"] = { fg = "#8c9440", bg = "#2e2828", },
["Secondary"] = { fg = "#807970", bg = "#423838", }, ["Secondary"] = { fg = "#807970", bg = "#2e2828", },
["Middle"] = { fg = "#423838", bg = "#807970", } ["Middle"] = { fg = "#423838", bg = "#807970", }
}, },
["TERMINAL"] = { ["TERMINAL"] = {
["Left"] = { fg = "#8abeb7", bg = "#2e2828", bold = true, }, ["Left"] = { fg = "#8abeb7", bg = "#2e2828", bold = true, },
["Right"] = { fg = "#8abeb7", bg = "#2e2828", }, ["Right"] = { fg = "#8abeb7", bg = "#2e2828", },
["Secondary"] = { fg = "#807970", bg = "#423838", }, ["Secondary"] = { fg = "#807970", bg = "#2e2828", },
["Middle"] = { fg = "#423838", bg = "#807970", } ["Middle"] = { fg = "#423838", bg = "#807970", }
}, },
["INSERT"] = { ["INSERT"] = {
@ -528,13 +528,13 @@ end
function StatuslineBranch() function StatuslineBranch()
local head = vim.b.gitsigns_head local head = vim.b.gitsigns_head
return SpecialBuffer() ~= true and head ~= nil and fmt(' %s |', head) or '' return SpecialBuffer() ~= true and head ~= nil and fmt(' git(%s) |', head) or ''
end end
function StatuslineFilename() function StatuslineFilename()
local special_files = { local special_files = {
['help'] = "Help", ['help'] = "Help",
['qf'] = 'QuickFix', ['qf'] = '[QuickFix] ' .. (vim.w.quickfix_title or ""),
['NeogitStatus'] = vim.b.gitsigns_head ['NeogitStatus'] = vim.b.gitsigns_head
} }
@ -545,6 +545,7 @@ end
vim.opt.showmode = false vim.opt.showmode = false
vim.opt.statusline = table.concat(statusline, '') vim.opt.statusline = table.concat(statusline, '')
vim.g.qf_disable_statusline = true
-- }}} -- }}}

Loading…