Revert "added colours to qf extension to distinguish quickfix and location list (#933)" (#1118)

This reverts commit 9170434aa1.
This commit is contained in:
Shadman 2023-10-18 11:22:34 +06:00 committed by GitHub
parent 2e2284db88
commit 7533b0ead6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 13 deletions

View File

@ -16,11 +16,6 @@ local function title()
return vim.fn.getqflist({ title = 0 }).title
end
local qf_colours = {
ll = vim.api.nvim_get_hl_by_name('Constant', false).foreground,
qf = vim.api.nvim_get_hl_by_name('Identifier', false).foreground,
}
local M = {}
function M.init()
@ -29,14 +24,7 @@ function M.init()
end
M.sections = {
lualine_a = {
{
label,
color = function()
return is_loclist() and { bg = qf_colours['ll'] } or { bg = qf_colours['qf'] }
end,
},
},
lualine_a = { label },
lualine_b = { title },
lualine_z = { 'location' },
}