Skip to content

Better way of listing workspaces #6

@iamim

Description

@iamim

Currently, the user is required to list the workspaces in a global variable. Because it has to be done before the plugin is loaded, hardcoding the value in init.lua or similar becomes the most natural approach. It becomes a problem for those who want to make the (neo)vim setup reproducible or public (I don't always want to show which projects I have or have my setup break when I init it on a different machine). I guess it's possible to hide this with shada or loading from a file that is excluded from git, but it does not feel like the intended solution.

Perhaps it would be a better approach to store it in ~/.local/state so that it's local per machine? If coupled with a simple way to query whether :pwd is in the workspace list, it could be integrated in lualine or similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions