Closed chrisnojima closed 1 year ago
Difftastic does not support patch formats:
Patching. Difftastic output is intended for human consumption, and it does not generate patches that you can apply later. Use diff if you need a patch.
So by design, it is unable to work with other tools, including GitSigns.
I think it would be safe to just git diff --no-ext-diff always , but if not it'd be nice to be able to override the diff command
Sorry, missed this.
Yes, i'm not asking to have it work. i'm asking to disable this tool
Do you not have internal
set in set dittopt
?
I'm using lunarvims setup with the defaults https://github.com/LunarVim/LunarVim/blob/master/lua/lvim/core/gitsigns.lua
What does :set diffopt?
show?
diffopt=vertical
setting internal fixes it, tnx!
internal
is apart of the default value of diffopt
. I suggest in your config to have either:
set diffopt+=vertical
or
vim.opt.diffopt:append('veritcal')
My personal setting is:
vim.opt.diffopt:append{
'linematch:50', -- needs neovim nightly
'vertical',
'foldcolumn:0',
'indent-heuristic',
}
cool thanks for the info, really appreciate the plugin!
Description
I use this external viewer for diffs https://github.com/Wilfred/difftastic and have it setup in my gitconfig as a global external differ tool with
I assume the different format of the diff isn't parsable so it fails to show the signs. I think it would be safe to just
git diff --no-ext-diff
always , but if not it'd be nice to be able to override the diff commandNeovim version
0.8.2
Operating system and version
macOS 13.1
Expected behavior
Signs show up on a diff
Actual behavior
No signs show up. It took a few for me to figure out what was going on
Minimal config
Steps to reproduce
Gitsigns debug messages
No response