tanvirtin / vgit.nvim

Visual git plugin for Neovim
MIT License
583 stars 11 forks source link

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

Open KritPaoIn opened 1 year ago

KritPaoIn commented 1 year ago

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,
    },
})

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
AndreM222 commented 1 year ago

how was this solved?

sudoCompetence commented 1 year ago

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

50BytesOfJohn commented 5 months ago

Having same issue, anyone solved it somehow maybe?