Skip to content

Support for git's worktrees #2142

Closed
Closed
@pseudoparenchymatous

Description

@pseudoparenchymatous

Is this a question?
No.

Can this functionality be implemented utilising API?
No.

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Gitsigns has this feature.

require('gitsigns').setup({
    worktrees = {
        {
            toplevel = '~/projects/sample/', 
            gitdir = '~/projects/sample/.not-defaut-gitdir/',
        }, 
        { ... },
    }
}

In case getting git info fails, it will try to look at these worktrees with basically a custom name of the .git directory (bare-repository). Nvim-tree having the same feature would be 😍.

Describe alternatives you've considered
I tried looking at the source code to try to hard code it but I don't understand your implementation lol. I managed to hard-code it in lualine (that plugin also doesn't support this feature).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions