How to change highlights only in a diff window/buffer #752
Unanswered
briandipalma
asked this question in
Q&A
Replies: 2 comments
-
|
you can check |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I've thrown this into the diffview config in case anyone else reading this is looking for a partial solution: hooks = {
diff_buf_read = function()
vim.api.nvim_set_hl(0, "Folded", {})
vim.api.nvim_set_hl(0, "CursorLine", {})
end,
},The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I find the folded (top and bottom lines) and current line (line 43) highlights distracting when reviewing diffs. See below.
Does anyone know how I can turn those highlights off only for diff windows?
I was thinking an autocmd but it's not clear how I can tell when a window is a diff and apply the highlight changes only to that window.
Beta Was this translation helpful? Give feedback.
All reactions