From ad92406678c7d5cdd5f9c6c5de9ee901b80a1ae5 Mon Sep 17 00:00:00 2001 From: asteroidalaz <51114513+asteroidalaz@users.noreply.github.com> Date: Tue, 25 Jan 2022 10:57:24 +0530 Subject: [PATCH] Shortened code The == `isEqualTo` check don't neet to be done on the the boolean data type. --- lua/nord/colors.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/nord/colors.lua b/lua/nord/colors.lua index 5465aea..604612a 100644 --- a/lua/nord/colors.lua +++ b/lua/nord/colors.lua @@ -43,7 +43,7 @@ local nord = (vim.o.background == "dark") } -- Enable contrast sidebars, floating windows and popup menus -if vim.g.nord_contrast == true then +if vim.g.nord_contrast then nord.sidebar = nord.nord1_gui nord.float = nord.nord1_gui else @@ -51,7 +51,7 @@ else nord.float = nord.nord0_gui end -if vim.g.nord_cursorline_transparent == true then +if vim.g.nord_cursorline_transparent then nord.cursorlinefg = nord.nord0_gui else nord.cursorlinefg = nord.nord1_gui -- 2.39.5