Skip to content

Commit

Permalink
fix: save help buffers by default
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc-stripe committed Sep 23, 2022
1 parent a0eaa81 commit 5a7037c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/resession/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ local default_config = {
},
-- Custom logic for determining if the buffer should be included
buf_filter = function(bufnr)
if not vim.tbl_contains({ "", "acwrite", "help" }, vim.bo[bufnr].buftype) then
local buftype = vim.bo[bufnr].buftype
if buftype == "help" then
return true
end
if buftype ~= "" and buftype ~= "acwrite" then
return false
end
return vim.bo[bufnr].buflisted
Expand Down

0 comments on commit 5a7037c

Please sign in to comment.