mirror of
https://github.com/folke/persistence.nvim.git
synced 2025-06-27 11:19:08 +02:00
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
This commit is contained in:
parent
f6aad7dde7
commit
ae0d7e8e45
1 changed files with 1 additions and 1 deletions
|
@ -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) ~= ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue