Skip to content

Research: Avoid closing buffers before saving session #98

@Zeioth

Description

@Zeioth

This is a thread to discuss possible ways to avoid doing this.

Failed approaches

Approach 1: Using vim.o.sessionoptions to exclude certain filetypes

As experiment, we have tried to remove help from

vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,terminal,localoptions,winpos"

and then setting the fitetype and buftype of a file to help, and save session.

RESULT: Doesn't work, it still save the buffer. It seems mksession has a way to recognize help files other than its type.

FUTURE ROADMAP

Once this neovim bug is fixed, we can temporaly set the buffers we don't want to save as nofile to exclude them from mksession without having to close them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions