mirror of
https://github.com/folke/persistence.nvim.git
synced 2025-06-21 00:25:54 +02:00
refactor: cleanup
This commit is contained in:
parent
3ae5cb9bc0
commit
166a79a55b
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ function M.start()
|
||||||
|
|
||||||
if Config.options.need > 0 then
|
if Config.options.need > 0 then
|
||||||
local bufs = vim.tbl_filter(function(b)
|
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
|
return false
|
||||||
end
|
end
|
||||||
return vim.api.nvim_buf_get_name(b) ~= ""
|
return vim.api.nvim_buf_get_name(b) ~= ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue