refactor: cleanup
This commit is contained in:
parent
3ae5cb9bc0
commit
166a79a55b
@ -45,7 +45,7 @@ function M.start()
|
|||||||
|
|
||||||
if Config.options.need > 0 then
|
if Config.options.need > 0 then
|
||||||
local bufs = vim.tbl_filter(function(b)
|
local bufs = vim.tbl_filter(function(b)
|
||||||
if vim.bo[b].buftype ~= "" or vim.bo[b].filetype == "gitcommit" or vim.bo[b].filetype == "gitrebase" or vim.bo[b].filetype == "jj" then
|
if vim.bo[b].buftype ~= "" or vim.tbl_contains({ "gitcommit", "gitrebase", "jj" }, vim.bo[b].filetype) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return vim.api.nvim_buf_get_name(b) ~= ""
|
return vim.api.nvim_buf_get_name(b) ~= ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user