mirror of
https://github.com/folke/persistence.nvim.git
synced 2025-06-29 12:10:15 +02:00
fix: don't save gitrebase
session (#44)
This commit is contained in:
parent
09af251a93
commit
9dbe2648c6
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,9 @@ function M.start()
|
||||||
if vim.bo[b].filetype == "gitcommit" then
|
if vim.bo[b].filetype == "gitcommit" then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
if vim.bo[b].filetype == "gitrebase" then
|
||||||
|
return false
|
||||||
|
end
|
||||||
return vim.api.nvim_buf_get_name(b) ~= ""
|
return vim.api.nvim_buf_get_name(b) ~= ""
|
||||||
end, vim.api.nvim_list_bufs())
|
end, vim.api.nvim_list_bufs())
|
||||||
if #bufs == 0 then
|
if #bufs == 0 then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue