Fix: quickfix extention not apearing

This commit is contained in:
shadmansaleh 2021-08-13 07:20:56 +06:00
parent 0f3ad7e248
commit fcb88aebba
2 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,11 @@ end
local M = {} local M = {}
function M.init()
-- Make sure ft wf doesn't create a custom statusline
vim.g.qf_disable_statusline = true
end
M.sections = { M.sections = {
lualine_a = {label}, lualine_a = {label},
lualine_b = {title}, lualine_b = {title},

View File

@ -52,12 +52,18 @@ local function load_extensions(config)
if local_extension.inactive_sections then if local_extension.inactive_sections then
load_sections(local_extension.inactive_sections, config.options) load_sections(local_extension.inactive_sections, config.options)
end end
if type(local_extension.init) == 'function' then
local_extension.init()
end
config.extensions[index] = local_extension config.extensions[index] = local_extension
elseif type(extension) == 'table' then elseif type(extension) == 'table' then
load_sections(extension.sections, config.options) load_sections(extension.sections, config.options)
if extension.inactive_sections then if extension.inactive_sections then
load_sections(extension.inactive_sections, config.options) load_sections(extension.inactive_sections, config.options)
end end
if type(local_extension.init) == 'function' then
local_extension.init()
end
config.extensions[index] = extension config.extensions[index] = extension
end end
end end