You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The submodule should either be ignored or ideally the changed hunks in the submodule could also be added to the quickfix list.
Actual behavior
The command fails with the error:
E5108: Error executing lua ...fig/nvim/plugged/plenary.nvim/lua/plenary/async/util.lua:34: Blocking on future failed ....config/nvim/plugged/gitsigns.nvim/lua/gitsigns/util.lua:52: Is a direc
tory
Gitsigns debug messages
No response
Minimal config
vim.cmd[[set runtimepath=$VIMRUNTIME]]vim.cmd[[set packpath=/tmp/nvim/site]]localpackage_root='/tmp/nvim/site/pack'localinstall_path=package_root..'/packer/start/packer.nvim'ifvim.fn.isdirectory(install_path) ==0thenprint("Installing Gitsigns and dependencies.")
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end-- Load pluginsrequire('packer').startup {
{
'wbthomason/packer.nvim',
{
'lewis6991/gitsigns.nvim',
requires= { 'nvim-lua/plenary.nvim' },
},
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config= {
package_root=package_root,
compile_path=install_path..'/plugin/packer_compiled.lua',
display= { non_interactive=true },
},
}
_G.load_config=function()
require('gitsigns').setup{
debug_mode=true, -- You must add this to enable debug messages-- GITSIGNS CONFIG THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
}
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE-- ALSO INCLUDE GITSIGNS DEBUG MESSAGESvim.cmd('Gitsigns debug_messages')
endrequire('packer').sync()
vim.cmd[[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
The text was updated successfully, but these errors were encountered:
Description
When running
in a git repository with a modified submodule, the command fails. It complains that some path (the submodule) is a directory.
Neovim version
NVIM v0.5.0
Operating system and version
Linux 5.10.60-1-MANJARO
Steps to reproduce
mkdir /tmp/temp
cd cd /tmp/temp
git init
echo text >> file1
git submodule add https://github.com/lewis6991/gitsigns.nvim
git add .
git commit -m 'Initial commit'
echo text > gitsigns.nvim/file2
nvim -nu minimal.lua file1
:lua require('gitsigns').setqflist("all")
Expected behavior
The submodule should either be ignored or ideally the changed hunks in the submodule could also be added to the quickfix list.
Actual behavior
The command fails with the error:
Gitsigns debug messages
No response
Minimal config
The text was updated successfully, but these errors were encountered: