mirror of
https://github.com/folke/persistence.nvim.git
synced 2025-08-02 17:15:18 +02:00
fix: dont save the session when only gitcommit
buffers are present. Fixes #14
This commit is contained in:
parent
21f55da0d3
commit
8f7cbccfb5
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ function M.start()
|
|||
if vim.bo[b].buftype ~= "" then
|
||||
return false
|
||||
end
|
||||
if vim.bo[b].filetype == "gitcommit" then
|
||||
return false
|
||||
end
|
||||
return vim.api.nvim_buf_get_name(b) ~= ""
|
||||
end, vim.api.nvim_list_bufs())
|
||||
if #bufs == 0 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue