Skip to content

Unable to get this working with LazyNvim #21

@riza-khan

Description

@riza-khan

Just switched to Lazyvim and can't seem to get this plugin to work as expected. Worked great on Astronvim just fine.

This is the setup:

  {
    'polarmutex/git-worktree.nvim',
    version = '^2',
    dependencies = { "nvim-lua/plenary.nvim" },
    enabled = true,
    config = function ()
      require('telescope').load_extension('git_worktree')

      vim.keymap.set( "n", "W", function ()
        require("telescope").extensions.git_worktree.git_worktrees()
      end, { desc = "Worktrees" })
  end
},

Throws this:

E5108: Error executing lua: /Users/[user]/.config/nvim/lua/plugins/core.lua:52: attempt to call field 'git_worktrees' (a nil value)
stack traceback:
/Users/[user]/.config/nvim/lua/plugins/core.lua:52: in function </Users/[user]/.config/nvim/lua/plugins/core.lua:51>

Any thoughts on how to get it working with Lazyvim?

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