Fix highlighting

This commit is contained in:
Olivier Roques
2021-02-09 10:29:26 +01:00
parent 18b75356e3
commit dffc1ee832
2 changed files with 3 additions and 3 deletions

View File

@@ -113,7 +113,7 @@ local function get_section_state(section)
end
return state
end
return ''
return common.is_active() and 'active' or 'inactive'
end
local function highlight_section(section)

View File

@@ -1,7 +1,7 @@
local fn, vim = vim.fn, vim
local fmt = string.format
local function exclude(bufnr)
local function is_excluded(bufnr)
return fn.buflisted(bufnr) == 0 or fn.getbufvar(bufnr, '&filetype') == 'qf'
end
@@ -61,7 +61,7 @@ end
local function get_buffers()
local buffers = {}
for nr = 1, fn.bufnr('$') do
if not exclude(nr) then
if not is_excluded(nr) then
table.insert(buffers, {
bufnr = nr,
name = fn.fnamemodify(fn.bufname(nr), ':t'),