From ae0d7e8e455d2ec043dc584e09301e1b4fcc42b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Oko=C5=84ski?= Date: Tue, 25 Feb 2025 19:16:59 +0100 Subject: [PATCH] fix(start): don't count ft=jj buffers for persistence (#90) ## Description Don't count `ft=jj` buffers towards those that need persisting ## Related Issue(s) https://github.com/LazyVim/LazyVim/discussions/5545 --- 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 0f57b0e..599fc79 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" then + if vim.bo[b].buftype ~= "" or vim.bo[b].filetype == "gitcommit" or vim.bo[b].filetype == "gitrebase" or vim.bo[b].filetype == "jj" then return false end return vim.api.nvim_buf_get_name(b) ~= ""