From: shaunsingh Date: Sat, 17 Jul 2021 17:27:38 +0000 (-0400) Subject: fine tuning and fixes X-Git-Url: https://git.lhaegele.de/?a=commitdiff_plain;h=eca08abf49b22e393c886cf18e97297e29b18e2f;p=nvim%2Fnord.nvim.git fine tuning and fixes --- diff --git a/lua/nord/theme.lua b/lua/nord/theme.lua index 6696ae0..d9c2532 100644 --- a/lua/nord/theme.lua +++ b/lua/nord/theme.lua @@ -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" }, diff --git a/lua/nord/util.lua b/lua/nord/util.lua index a233b76..1e6b7df 100644 --- a/lua/nord/util.lua +++ b/lua/nord/util.lua @@ -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]]