Skip to content

Builtin switch hook throws error #24

@luqasz

Description

@luqasz
Error executing vim.schedule lua callback: .../paqs/start/git-worktree.nvim/lua/git-worktree/hooks.lua:91: attempt to call field 'get' (a nil value)
stack traceback:
        .../paqs/start/git-worktree.nvim/lua/git-worktree/hooks.lua:91: in function 'hook'
        .../paqs/start/git-worktree.nvim/lua/git-worktree/hooks.lua:43: in function 'emit'
        ...qs/start/git-worktree.nvim/lua/git-worktree/worktree.lua:74: in function <...qs/start/git-worktree.nvim/lua/git-worktree/worktree.lua:72>

This is what I get with registered hook update_current_buffer_on_switch. Lualine branch name isn't updated as well. Probably I'll need to write my own hook for that ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions