Skip to content

Commit ae0d7e8

Browse files
authored
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) LazyVim/LazyVim#5545
1 parent f6aad7d commit ae0d7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/persistence/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function M.start()
4545

4646
if Config.options.need > 0 then
4747
local bufs = vim.tbl_filter(function(b)
48-
if vim.bo[b].buftype ~= "" or vim.bo[b].filetype == "gitcommit" or vim.bo[b].filetype == "gitrebase" then
48+
if vim.bo[b].buftype ~= "" or vim.bo[b].filetype == "gitcommit" or vim.bo[b].filetype == "gitrebase" or vim.bo[b].filetype == "jj" then
4949
return false
5050
end
5151
return vim.api.nvim_buf_get_name(b) ~= ""

0 commit comments

Comments
 (0)