Set cursorlineopt to number so diff style unchanged
dblume

dblume commited on 2024-03-26 22:23:29
Showing 1 changed files, with 1 additions and 0 deletions.


Without this change, diff lines with differences will have
an underline (implemented by #9028).

See https://github.com/neovim/neovim/issues/9800

TODO: Maybe don't default cursorline to true since it slows down
drawing. I only use it for number modes.
So maybe "au OptionSet number set cursorline"
... ...
@@ -13,6 +13,7 @@ set noshowcmd       " Show size of selected area in visual mode on last line
13 13
 set noruler         " Show coordinates on status line
14 14
 set hidden          " Don't abandon Scratch buffer when hidden.
15 15
 set cursorline      " For CursorLineNR formatting similar to pre 8.0.
16
+set culopt=number   " Otherwise diff views have an underline. neovim issue 9800
16 17
 
17 18
 " Make j and k move to the next row, not file line
18 19
 nnoremap j gj
19 20