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

[VGit] fatal: path '.config/nvim/lua/plugins/init.lua #336

Open
KritPaoIn opened this issue Mar 15, 2023 · 3 comments
Open

[VGit] fatal: path '.config/nvim/lua/plugins/init.lua #336

KritPaoIn opened this issue Mar 15, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@KritPaoIn
Copy link

Description

On doing :VGit buffer_diff_preview, I get this error:

[VGit] fatal: path '.config/nvim/lua/plugins/init.lua' is in the index, but not 'init.lua'
       hint: Did you mean ':0:.config/nvim/lua/plugins/init.lua' aka ':0:./init.lua'?

How to reproduce:

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
    vim.fn.system({
        "git",
        "clone",
        "--filter=blob:none",
        "https://github.com/folke/lazy.nvim.git",
        "--branch=stable", -- latest stable release
        lazypath,
    })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
    {
        "tanvirtin/vgit.nvim",
        dependencies = {
            "nvim-lua/plenary.nvim",
            "nvim-tree/nvim-web-devicons",
        },
        config = function()
            require("vgit").setup()
        end,
    },
})
  • nvim --version output:
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Ventura

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.8.3/share/nvim"

Run :checkhealth for more info
  • Operating system:
    macOS
@KritPaoIn KritPaoIn added the bug Something isn't working label Mar 15, 2023
@AndreM222
Copy link

how was this solved?

@sudoCompetence
Copy link

sudoCompetence commented May 15, 2023

Been having the same issue as well, do not think this is solved.

@tanvirtin tanvirtin reopened this Nov 24, 2023
@50BytesOfJohn
Copy link

Having same issue, anyone solved it somehow maybe?

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

5 participants