NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
4.1k stars 242 forks source link

Neogit not workign after update - neogit has not been setup #1437

Closed Gaurang033 closed 4 months ago

Gaurang033 commented 4 months ago

Description

I am not sure, which version i was using it, but it was working really well for last couple of months. and today just when I upgraded it. it's showing me following error.r

I am using lazy to install the plugin.

 return {
    "NeogitOrg/neogit",
    dependencies = {
      "nvim-lua/plenary.nvim",         -- required
      "sindrets/diffview.nvim",        -- optional - Diff integration
      -- Only one of these is needed, not both.
      "nvim-telescope/telescope.nvim", -- optional
      "ibhagwan/fzf-lua",              -- optional
    },
    config = function()
      require("neogit").setup()
    end,
    cmd = "Neogit",
    -- event = "VeryLazy"
  }

Neovim version

NVIM v0.9.5 Build type: Release LuaJIT 2.1.1713773202

Operating system and version

macos 14.5

Steps to reproduce

use this configuration and ttry to run Neogit command.

 return {
    "NeogitOrg/neogit",
    dependencies = {
      "nvim-lua/plenary.nvim",         -- required
      "sindrets/diffview.nvim",        -- optional - Diff integration
      -- Only one of these is needed, not both.
      "nvim-telescope/telescope.nvim", -- optional
      "ibhagwan/fzf-lua",              -- optional
    },
    config = function()
      require("neogit").setup()
    end,
    cmd = "Neogit",
    -- event = "VeryLazy"
  }

Expected behavior

error. Neogit has not been setup!

Actual behavior

should open the neogit in split window.

Minimal config

return {
    "NeogitOrg/neogit",
    dependencies = {
      "nvim-lua/plenary.nvim",         -- required
      "sindrets/diffview.nvim",        -- optional - Diff integration
      -- Only one of these is needed, not both.
      "nvim-telescope/telescope.nvim", -- optional
      "ibhagwan/fzf-lua",              -- optional
    },
    config = function()
      require("neogit").setup()
    end,
    cmd = "Neogit",
    -- event = "VeryLazy"
  }
CKolkey commented 4 months ago

I recommend updating to nvim 0.10.x and see if that sorts things out :)

Gaurang033 commented 4 months ago

I recommend updating to nvim 0.10.x and see if that sorts things out :)

Update the neovim to 0.10.1 and everything works NVIM v0.10.1 Build type: Release LuaJIT 2.1.1720049189