Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in README.md Lazy.nvim installation code #128

Open
mm-crj opened this issue May 4, 2024 · 1 comment
Open

Error in README.md Lazy.nvim installation code #128

mm-crj opened this issue May 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mm-crj
Copy link
Contributor

mm-crj commented May 4, 2024

Description
In the code for Lazy.nvim installation, the setup function must be inside the table. At least, this what worked for me.

  {
    "kdheepak/lazygit.nvim",
    cmd = {
      "LazyGit",
      "LazyGitConfig",
      "LazyGitCurrentFile",
      "LazyGitFilter",
      "LazyGitFilterCurrentFile",
    },
    config = function()
      require("lazy").setup({})
    end,
    -- optional for floating window border decoration
    dependencies = {
      "nvim-lua/plenary.nvim",
    },
    -- setting the keybinding for LazyGit with 'keys' is recommended in
    -- order to load the plugin when the command is run for the first time
    keys = {
      { "<leader>gg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
    }
  },

lazy = false also should work instead of the keybind.
Desktop (please complete the following information):

- nvim --version:
NVIM v0.9.4
Build type: RelWithDebInfo
LuaJIT 2.1.1692716794
:checkhealth
OS Info:
{
machine = "x86_64",
release = "6.5.0-28-generic",
sysname = "Linux",
version = "#29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2"
}

@mm-crj mm-crj added the bug Something isn't working label May 4, 2024
@avree
Copy link
Contributor

avree commented May 12, 2024

I had the same issue with readme installation.

return { "kdheepak/lazygit.nvim", cmd = { "LazyGit", "LazyGitConfig", "LazyGitCurrentFile", "LazyGitFilter", "LazyGitFilterCurrentFile" }, dependencies = { "nvim-lua/plenary.nvim" }, keys = { { "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" } } }

This resolved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants