fix(start): don't count ft=jj buffers for persistence ()

## Description

Don't count `ft=jj` buffers towards those that need persisting

## Related Issue(s)

https://github.com/LazyVim/LazyVim/discussions/5545
This commit is contained in:
Jakub Okoński 2025-02-25 19:16:59 +01:00 committed by GitHub
parent f6aad7dde7
commit ae0d7e8e45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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) ~= ""