Comments (6)
I cannot reproduce anymore either, so perhaps the issue is resolved. I'll reopen if I run into it again.
from gitsigns.nvim.
I got the same error when I close a buffer, even when the file content is not touched.
from gitsigns.nvim.
Try not attach the fugitive buffers in on_attach
function.
local gs = require("gitsigns")
gs.setup({
on_attach = function(bufnr)
-- do not attach the fugitive buffers
if vim.startswith(vim.api.nvim_buf_get_name(bufnr), "fugitive://") then
return false
end
end,
})
from gitsigns.nvim.
Try not attach the fugitive buffers in
on_attach
function.local gs = require("gitsigns") gs.setup({ on_attach = function(bufnr) -- do not attach the fugitive buffers if vim.startswith(vim.api.nvim_buf_get_name(bufnr), "fugitive://") then return false end end, })
Sorry this doesn't work for me
from gitsigns.nvim.
I'm seeing this issue as well, though mine normally comes when looking at the stage diff. It's very similar to #848, as it's pointing to more-or-less the same exact line:
gitsigns.nvim/lua/gitsigns/watcher.lua
Line 90 in 41dc075
You know what they say:
There are only two hard things in Computer Science: cache invalidation and naming things.
from gitsigns.nvim.
I'm not able to reproduce. Can you double check the reproduction steps?
from gitsigns.nvim.
Related Issues (20)
- Feature request: add the ability to ignore blank lines for git blames.
- Sign column not respecting colors from gruvbox HOT 3
- new line at end of file cause trace HOT 2
- If a line of code is too long and breaks, the gitsign lines should be continuous. HOT 1
- Neovim freezes for several seconds while performing some vim-fugitive operations HOT 16
- Error when deleting a buffer before `blame_line` loads
- Having problems with `gitsigns` and `nvim-colorizer` HOT 2
- Gitsigns fails to run `git --version` HOT 8
- `gitsigns_head` shows `nil` instead of revision
- Feature Request: Allow changing blame base. HOT 1
- gitsign cannot attach if nvim starts from "run" window HOT 2
- Attempt to index a nil value after executing "GDelete" HOT 2
- Syntax highlighting fails after opening linehl HOT 1
- Configuring git blame HOT 2
- Error after update – gitsigns: Ignoring invalid configuration field 'on_attach_pre' HOT 8
- Git current line blame overlap with text when split windows HOT 1
- git blame fails -- looks like the git command is incorrect HOT 3
- error in executing `:Gitsigns preview_hunk_inline ` HOT 2
- null-ls format panic when apply path PR#983 HOT 3
- Gitsigns assertion error in folder not using git HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitsigns.nvim.