fix: override `cursorlineopt=number` via autocmds

This commit is contained in:
NotAShelf 2023-05-16 17:25:20 +03:00
parent bae1ef363a
commit d2fab111de
No known key found for this signature in database
GPG Key ID: F0D14CCB5ED5AA22
1 changed files with 4 additions and 0 deletions

View File

@ -75,9 +75,13 @@ in {
set shortmess+=c
set tm=${toString cfg.mapTimeout}
set hidden
${optionalString cfg.theme.transparent ''
" this needs to be set if the theme is transparent
set cursorlineopt=number
" override when vim is opened or a new buffer is entered
autocmd VimEnter * setlocal cursorlineopt=number
autocmd BufWinEnter * setlocal cursorlineopt=number
''}
${optionalString cfg.splitBelow ''
set splitbelow