This reverts commit 9170434aa100f3967b43d5d34bb9adc56fae1986.
This commit is contained in:
parent
2e2284db88
commit
7533b0ead6
@ -16,11 +16,6 @@ local function title()
|
|||||||
return vim.fn.getqflist({ title = 0 }).title
|
return vim.fn.getqflist({ title = 0 }).title
|
||||||
end
|
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 = {}
|
local M = {}
|
||||||
|
|
||||||
function M.init()
|
function M.init()
|
||||||
@ -29,14 +24,7 @@ function M.init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
M.sections = {
|
M.sections = {
|
||||||
lualine_a = {
|
lualine_a = { label },
|
||||||
{
|
|
||||||
label,
|
|
||||||
color = function()
|
|
||||||
return is_loclist() and { bg = qf_colours['ll'] } or { bg = qf_colours['qf'] }
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
lualine_b = { title },
|
lualine_b = { title },
|
||||||
lualine_z = { 'location' },
|
lualine_z = { 'location' },
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user