vgit.nvim icon indicating copy to clipboard operation
vgit.nvim copied to clipboard

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

Open KritPaoIn opened this issue 2 years ago • 3 comments

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 avatar Mar 15 '23 05:03 KritPaoIn

how was this solved?

AndreM222 avatar Apr 02 '23 21:04 AndreM222

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

sudoCompetence avatar May 15 '23 02:05 sudoCompetence

Having same issue, anyone solved it somehow maybe?

50BytesOfJohn avatar Mar 19 '24 07:03 50BytesOfJohn