From: asteroidalaz <51114513+asteroidalaz@users.noreply.github.com> Date: Tue, 25 Jan 2022 05:27:24 +0000 (+0530) Subject: Shortened code X-Git-Url: https://git.lhaegele.de/?a=commitdiff_plain;h=ad92406678c7d5cdd5f9c6c5de9ee901b80a1ae5;p=nvim%2Fnord.nvim.git Shortened code The == `isEqualTo` check don't neet to be done on the the boolean data type. --- 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