fine tuning and fixes
authorshaunsingh <shaunsingh0207@gmail.com>
Sat, 17 Jul 2021 17:27:38 +0000 (13:27 -0400)
committershaunsingh <shaunsingh0207@gmail.com>
Sat, 17 Jul 2021 17:27:38 +0000 (13:27 -0400)
lua/nord/theme.lua
lua/nord/util.lua

index 6696ae00a7304a89a0f51c12a7fcd6331b2088f2..d9c2532ff228795c1ee38d9efa78d9ec8201550f 100644 (file)
@@ -21,8 +21,8 @@ theme.loadSyntax = function ()
     PreProc =        { fg = nord.nord9_gui }, -- generic Preprocessor
     Include =        { fg = nord.nord9_gui }, -- preprocessor #include
     Define =         { fg = nord.nord9_gui }, -- preprocessor #define
-    Macro =          { fg = nord.nord8_gui }, -- same as Define
-    Typedef =        { fg = nord.nord8_gui }, -- A typedef
+    Macro =          { fg = nord.nord9_gui }, -- same as Define
+    Typedef =        { fg = nord.nord9_gui }, -- A typedef
     PreCondit =      { fg = nord.nord13_gui }, -- preprocessor #if, #else, #endif, etc.
     Special =        { fg = nord.nord4_gui }, -- any special symbol
     SpecialChar =    { fg = nord.nord13_gui }, -- special character in a constant
@@ -34,6 +34,8 @@ theme.loadSyntax = function ()
     Ignore =         { fg = nord.disabled }, -- left blank, hidden
     Error =          { fg = nord.error, bg = nord.none, style = 'bold,underline' }, -- any erroneous construct
     Todo =           { fg = nord.nord13_gui, bg = nord.none, style = 'bold,italic' }, -- anything that needs extra attention; mostly the keywords TODO FIXME and XXX
+    Conceal =        { fg = node.none, bg = nord.bg },
+
 
     htmlLink = { fg = nord.link, style = "underline" },
     htmlH1 =   { fg = nord.nord8_gui, style = "bold" },
index a233b762b5ba27e778199638b2bb4fbbf5823b15..1e6b7df2f1ac3e34e88950724528b7013d493c2b 100644 (file)
@@ -14,17 +14,17 @@ util.highlight = function (group, color)
   if color.link then vim.cmd("highlight! link " .. group .. " " .. color.link) end
 end
 
--- Only define Moonlight if it's the active colorshceme
+-- Only define nord if it's the active colorshceme
 function util.onColorScheme()
   if vim.g.colors_name ~= "nord" then
-    vim.cmd [[autocmd! Moonlight]]
-    vim.cmd [[augroup! Moonlight]]
+    vim.cmd [[autocmd! nord]]
+    vim.cmd [[augroup! nord]]
   end
 end
 
 -- Change the background for the terminal, packer and qf windows
 util.contrast = function ()
-  vim.cmd [[augroup Moonlight]]
+  vim.cmd [[augroup nord]]
   vim.cmd [[  autocmd!]]
   vim.cmd [[  autocmd ColorScheme * lua require("nord.util").onColorScheme()]]
   vim.cmd [[  autocmd TermOpen * setlocal winhighlight=Normal:NormalFloat,SignColumn:NormalFloat]]