~ashie/autosession.nvim

1e3936683ace357e5c3ed2309d4442a57de5059b — Ash 8 months ago 49b8c24
fix: disable mkview for man
1 files changed, 3 insertions(+), 1 deletions(-)

M lua/autosession.lua
M lua/autosession.lua => lua/autosession.lua +3 -1
@@ 134,7 134,9 @@ end
local default_config = {
    auto_load = true,
    create_user_commands = true,
    mkview = function(bufnr) return vim.bo[bufnr].filetype ~= 'help' end,
    mkview = function(bufnr)
        return not vim.tbl_contains({ 'help', 'man' }, vim.bo[bufnr].filetype)
    end,
    session_dir = _session_dir,
}