From d2fab111de125be741130a08adb8d429eef1628c Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 16 May 2023 17:25:20 +0300 Subject: [PATCH] fix: override `cursorlineopt=number` via autocmds --- modules/basic/config.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/basic/config.nix b/modules/basic/config.nix index ae3c92f..5e91a4a 100644 --- a/modules/basic/config.nix +++ b/modules/basic/config.nix @@ -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