Refactor git part

This commit is contained in:
Olivier Roques
2021-05-21 11:31:37 +02:00
parent 680cfeb074
commit 88beb047ea
2 changed files with 31 additions and 31 deletions

View File

@@ -2,7 +2,9 @@ local fn, vim = vim.fn, vim
local fmt = string.format
local function is_excluded(bufnr, settings)
local excluded = fn.buflisted(bufnr) == 0 or fn.getbufvar(bufnr, '&filetype') == 'qf'
local excluded = true
excluded = excluded and fn.buflisted(bufnr) == 0
excluded = excluded or fn.getbufvar(bufnr, '&filetype') == 'qf'
if settings.exclude_terminal then
excluded = excluded or fn.getbufvar(bufnr, '&buftype') == 'terminal'
end