From 166a79a55bfa7a4db3e26fc031b4d92af71d0b51 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 25 Feb 2025 19:20:14 +0100 Subject: [PATCH] refactor: cleanup --- lua/persistence/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/persistence/init.lua b/lua/persistence/init.lua index 599fc79..760f6b6 100644 --- a/lua/persistence/init.lua +++ b/lua/persistence/init.lua @@ -45,7 +45,7 @@ function M.start() if Config.options.need > 0 then 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 end return vim.api.nvim_buf_get_name(b) ~= ""