(chore) format
authorshaunsingh <shaunsingh0207@gmail.com>
Thu, 20 Jan 2022 23:51:26 +0000 (18:51 -0500)
committershaunsingh <shaunsingh0207@gmail.com>
Thu, 20 Jan 2022 23:51:26 +0000 (18:51 -0500)
lua/lualine/themes/nord.lua
lua/nord/colors.lua
lua/nord/init.lua
lua/nord/theme.lua
lua/nord/util.lua

index 234cc42a5768c9ce2bbcfc256613a659f3dfea1e..09f14976bc98cf55872f8b451a9fd24c9cc4ffaa 100644 (file)
@@ -1,37 +1,37 @@
-local colors = require('nord.colors')
+local colors = require("nord.colors")
 
 local nord = {}
 
 nord.normal = {
-  a = {fg = colors.nord1_gui, bg = colors.nord9_gui},
-  b = {fg = colors.nord5_gui, bg = colors.nord2_gui},
-  c = {fg = colors.nord4_gui, bg = colors.nord1_gui},
+       a = { fg = colors.nord1_gui, bg = colors.nord9_gui },
+       b = { fg = colors.nord5_gui, bg = colors.nord2_gui },
+       c = { fg = colors.nord4_gui, bg = colors.nord1_gui },
 }
 
 nord.insert = {
-  a = {fg = colors.nord1_gui, bg = colors.nord4_gui},
-  b = {fg = colors.nord6_gui, bg = colors.nord3_gui_bright},
+       a = { fg = colors.nord1_gui, bg = colors.nord4_gui },
+       b = { fg = colors.nord6_gui, bg = colors.nord3_gui_bright },
 }
 
 nord.visual = {
-  a = {fg = colors.nord0_gui, bg = colors.nord9_gui},
-  b = {fg = colors.nord4_gui, bg = colors.nord10_gui},
+       a = { fg = colors.nord0_gui, bg = colors.nord9_gui },
+       b = { fg = colors.nord4_gui, bg = colors.nord10_gui },
 }
 
 nord.replace = {
-  a = {fg = colors.nord0_gui, bg = colors.nord11_gui},
-  b = {fg = colors.nord4_gui, bg = colors.nord10_gui},
+       a = { fg = colors.nord0_gui, bg = colors.nord11_gui },
+       b = { fg = colors.nord4_gui, bg = colors.nord10_gui },
 }
 
 nord.command = {
-  a = {fg = colors.nord0_gui, bg = colors.nord15_gui, gui = 'bold'},
-  b = {fg = colors.nord4_gui, bg = colors.nord10_gui},
+       a = { fg = colors.nord0_gui, bg = colors.nord15_gui, gui = "bold" },
+       b = { fg = colors.nord4_gui, bg = colors.nord10_gui },
 }
 
 nord.inactive = {
-  a = {fg = colors.nord4_gui, bg = colors.nord0_gui, gui = 'bold'},
-  b = {fg = colors.nord4_gui, bg = colors.nord0_gui},
-  c = {fg = colors.nord4_gui, bg = colors.nord1_gui}
+       a = { fg = colors.nord4_gui, bg = colors.nord0_gui, gui = "bold" },
+       b = { fg = colors.nord4_gui, bg = colors.nord0_gui },
+       c = { fg = colors.nord4_gui, bg = colors.nord1_gui },
 }
 
 return nord
index eadbed134d1ffa5c9e2fde6843a7dab093bdfe87..5465aea08f5a1a20253e262631c5cf2eb64540b4 100644 (file)
@@ -1,58 +1,60 @@
-local nord = (vim.o.background == 'dark') and {
-  --16 colors
-  nord0_gui        = "#2E3440", -- nord0 in palette
-  nord1_gui        = "#3B4252", -- nord1 in palette
-  nord2_gui        = "#434C5E", -- nord2 in palette
-  nord3_gui        = "#4C566A", -- nord3 in palette
-  nord3_gui_bright = "#616E88", -- out of palette
-  nord4_gui        = "#D8DEE9", -- nord4 in palette
-  nord5_gui        = "#E5E9F0", -- nord5 in palette
-  nord6_gui        = "#ECEFF4", -- nord6 in palette
-  nord7_gui        = "#8FBCBB", -- nord7 in palette
-  nord8_gui        = "#88C0D0", -- nord8 in palette
-  nord9_gui        = "#81A1C1", -- nord9 in palette
-  nord10_gui       = "#5E81AC", -- nord10 in palette
-  nord11_gui       = "#BF616A", -- nord11 in palette
-  nord12_gui       = "#D08770", -- nord12 in palette
-  nord13_gui       = "#EBCB8B", -- nord13 in palette
-  nord14_gui       = "#A3BE8C", -- nord14 in palette
-  nord15_gui       = "#B48EAD", -- nord15 in palette
-  none             = 'NONE'
-} or {
-  --16 colors
-  nord0_gui        = "#ECEFF4", -- nord6 in palette
-  nord1_gui        = "#E5E9F0", -- nord5 in palette
-  nord2_gui        = "#D8DEE9", -- nord4 in palette
-  nord3_gui        = "#4C566A", -- nord3 in palette
-  nord3_gui_bright = "#AEC7DF", -- out of palette
-  nord4_gui        = "#434C5E", -- nord2 in palette
-  nord5_gui        = "#3B4252", -- nord1 in palette
-  nord6_gui        = "#2E3440", -- nord0 in palette
-  nord7_gui        = "#8FBCBB", -- nord7 in palette
-  nord8_gui        = "#88C0D0", -- nord8 in palette
-  nord9_gui        = "#81A1C1", -- nord9 in palette
-  nord10_gui       = "#5E81AC", -- nord10 in palette
-  nord11_gui       = "#BF616A", -- nord11 in palette
-  nord12_gui       = "#D08770", -- nord12 in palette
-  nord13_gui       = "#EBCB8B", -- nord13 in palette
-  nord14_gui       = "#A3BE8C", -- nord14 in palette
-  nord15_gui       = "#B48EAD", -- nord15 in palette
-  none             = 'NONE'
-}
+local nord = (vim.o.background == "dark")
+               and {
+                       --16 colors
+                       nord0_gui = "#2E3440", -- nord0 in palette
+                       nord1_gui = "#3B4252", -- nord1 in palette
+                       nord2_gui = "#434C5E", -- nord2 in palette
+                       nord3_gui = "#4C566A", -- nord3 in palette
+                       nord3_gui_bright = "#616E88", -- out of palette
+                       nord4_gui = "#D8DEE9", -- nord4 in palette
+                       nord5_gui = "#E5E9F0", -- nord5 in palette
+                       nord6_gui = "#ECEFF4", -- nord6 in palette
+                       nord7_gui = "#8FBCBB", -- nord7 in palette
+                       nord8_gui = "#88C0D0", -- nord8 in palette
+                       nord9_gui = "#81A1C1", -- nord9 in palette
+                       nord10_gui = "#5E81AC", -- nord10 in palette
+                       nord11_gui = "#BF616A", -- nord11 in palette
+                       nord12_gui = "#D08770", -- nord12 in palette
+                       nord13_gui = "#EBCB8B", -- nord13 in palette
+                       nord14_gui = "#A3BE8C", -- nord14 in palette
+                       nord15_gui = "#B48EAD", -- nord15 in palette
+                       none = "NONE",
+               }
+       or {
+               --16 colors
+               nord0_gui = "#ECEFF4", -- nord6 in palette
+               nord1_gui = "#E5E9F0", -- nord5 in palette
+               nord2_gui = "#D8DEE9", -- nord4 in palette
+               nord3_gui = "#4C566A", -- nord3 in palette
+               nord3_gui_bright = "#AEC7DF", -- out of palette
+               nord4_gui = "#434C5E", -- nord2 in palette
+               nord5_gui = "#3B4252", -- nord1 in palette
+               nord6_gui = "#2E3440", -- nord0 in palette
+               nord7_gui = "#8FBCBB", -- nord7 in palette
+               nord8_gui = "#88C0D0", -- nord8 in palette
+               nord9_gui = "#81A1C1", -- nord9 in palette
+               nord10_gui = "#5E81AC", -- nord10 in palette
+               nord11_gui = "#BF616A", -- nord11 in palette
+               nord12_gui = "#D08770", -- nord12 in palette
+               nord13_gui = "#EBCB8B", -- nord13 in palette
+               nord14_gui = "#A3BE8C", -- nord14 in palette
+               nord15_gui = "#B48EAD", -- nord15 in palette
+               none = "NONE",
+       }
 
 -- Enable contrast sidebars, floating windows and popup menus
 if vim.g.nord_contrast == true then
-  nord.sidebar = nord.nord1_gui
-  nord.float = nord.nord1_gui
+       nord.sidebar = nord.nord1_gui
+       nord.float = nord.nord1_gui
 else
-  nord.sidebar = nord.nord0_gui
-  nord.float = nord.nord0_gui
+       nord.sidebar = nord.nord0_gui
+       nord.float = nord.nord0_gui
 end
 
 if vim.g.nord_cursorline_transparent == true then
-  nord.cursorlinefg = nord.nord0_gui
+       nord.cursorlinefg = nord.nord0_gui
 else
-  nord.cursorlinefg = nord.nord1_gui
+       nord.cursorlinefg = nord.nord1_gui
 end
 
 return nord
index 01b85a3f50d5de6b60aed5438ed4410d2d51f01c..f58836c4179ea703850295db9b4499d7c4804743 100644 (file)
@@ -2,11 +2,11 @@
 -- Description:         Port of articicestudio's nord theme for neovim
 -- Author:              https://github.com/shaunsingh
 
-local util = require('nord.util')
+local util = require("nord.util")
 
 -- Load the theme
-local set = function ()
-  util.load()
+local set = function()
+       util.load()
 end
 
 return { set = set }
index a4c3963686ebf021a497dc808d8a0de64ee9d5e8..66dc9d1942b9d1512ddcd393ba5bf3d8c54a9a23 100644 (file)
@@ -2,528 +2,517 @@ local nord = require("nord.colors")
 
 local theme = {}
 
-theme.loadSyntax = function ()
-    -- Syntax highlight groups
-  local syntax = {
-    Type =           { fg = nord.nord9_gui }, -- int, long, char, etc.
-    StorageClass =   { fg = nord.nord9_gui }, -- static, register, volatile, etc.
-    Structure =      { fg = nord.nord9_gui }, -- struct, union, enum, etc.
-    Constant =       { fg = nord.nord4_gui }, -- any constant
-    Character =      { fg = nord.nord14_gui }, -- any character constant: 'c', '\n'
-    Number =         { fg = nord.nord15_gui }, -- a number constant: 5
-    Boolean =        { fg = nord.nord9_gui }, -- a boolean constant: TRUE, false
-    Float =          { fg = nord.nord15_gui }, -- a floating point constant: 2.3e10
-    Statement =      { fg = nord.nord9_gui }, -- any statement
-    Label =          { fg = nord.nord9_gui }, -- case, default, etc.
-    Operator =       { fg = nord.nord9_gui }, -- sizeof", "+", "*", etc.
-    Exception =      { fg = nord.nord9_gui }, -- try, catch, throw
-    PreProc =        { fg = nord.nord9_gui }, -- generic Preprocessor
-    Include =        { fg = nord.nord9_gui }, -- preprocessor #include
-    Define =         { fg = nord.nord9_gui }, -- preprocessor #define
-    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
-    Tag =            { fg = nord.nord4_gui }, -- you can use CTRL-] on this
-    Delimiter =      { fg = nord.nord6_gui }, -- character that needs attention like , or .
-    SpecialComment = { fg = nord.nord8_gui }, -- special things inside a comment
-    Debug =          { fg = nord.nord11_gui }, -- debugging statements
-    Underlined =     { fg = nord.nord14_gui, bg = nord.none, style = 'underline' }, -- text that stands out, HTML links
-    Ignore =         { fg = nord.nord1_gui }, -- left blank, hidden
-    Error =          { fg = nord.nord11_gui, 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 = nord.none, bg = nord.nord0_gui },
-
-    htmlLink =            { fg = nord.nord14_gui, style = "underline" },
-    htmlH1 =              { fg = nord.nord8_gui, style = "bold" },
-    htmlH2 =              { fg = nord.nord11_gui, style = "bold" },
-    htmlH3 =              { fg = nord.nord14_gui, style = "bold" },
-    htmlH4 =              { fg = nord.nord15_gui, style = "bold" },
-    htmlH5 =              { fg = nord.nord9_gui, style = "bold" },
-    markdownH1 =          { fg = nord.nord8_gui, style = "bold" },
-    markdownH2 =          { fg = nord.nord11_gui, style = "bold" },
-    markdownH3 =          { fg = nord.nord14_gui, style = "bold" },
-    markdownH1Delimiter = { fg = nord.nord8_gui },
-    markdownH2Delimiter = { fg = nord.nord11_gui },
-    markdownH3Delimiter = { fg = nord.nord14_gui },
-  }
-
-    -- Italic comments
-  if vim.g.nord_italic == false then
-    syntax.Comment =     {fg = nord.nord3_gui_bright} -- normal comments
-    syntax.Conditional = { fg = nord.nord9_gui } -- normal if, then, else, endif, switch, etc.
-    syntax.Function =    { fg = nord.nord8_gui} -- normal function names
-    syntax.Identifier =  { fg = nord.nord9_gui}; -- any variable name
-    syntax.Keyword =     { fg = nord.nord9_gui } -- normal for, do, while, etc.
-    syntax.Repeat =      { fg = nord.nord9_gui } -- normal any other keyword
-    syntax.String =      { fg = nord.nord14_gui } -- any string
-  else
-    syntax.Comment =     { fg = nord.nord3_gui_bright, bg = nord.none, style = 'italic' } -- italic comments
-    syntax.Conditional = { fg = nord.nord9_gui, bg = nord.none, style = 'italic' } -- italic if, then, else, endif, switch, etc.
-    syntax.Function =    { fg = nord.nord8_gui, bg = nord.none, style = 'italic' } -- italic funtion names
-    syntax.Identifier =  { fg = nord.nord9_gui, bg = nord.none, style = 'italic' }; -- any variable name
-    syntax.Keyword =     { fg = nord.nord9_gui, bg = nord.none, style = 'italic' } -- italic for, do, while, etc.
-    syntax.Repeat =      { fg = nord.nord9_gui, bg = nord.none, style = 'italic' } -- italic any other keyword
-    syntax.String =      { fg = nord.nord14_gui, bg = nord.none, style= 'italic' } -- any string
-  end
-
-  return syntax
-
+theme.loadSyntax = function()
+       -- Syntax highlight groups
+       local syntax = {
+               Type = { fg = nord.nord9_gui }, -- int, long, char, etc.
+               StorageClass = { fg = nord.nord9_gui }, -- static, register, volatile, etc.
+               Structure = { fg = nord.nord9_gui }, -- struct, union, enum, etc.
+               Constant = { fg = nord.nord4_gui }, -- any constant
+               Character = { fg = nord.nord14_gui }, -- any character constant: 'c', '\n'
+               Number = { fg = nord.nord15_gui }, -- a number constant: 5
+               Boolean = { fg = nord.nord9_gui }, -- a boolean constant: TRUE, false
+               Float = { fg = nord.nord15_gui }, -- a floating point constant: 2.3e10
+               Statement = { fg = nord.nord9_gui }, -- any statement
+               Label = { fg = nord.nord9_gui }, -- case, default, etc.
+               Operator = { fg = nord.nord9_gui }, -- sizeof", "+", "*", etc.
+               Exception = { fg = nord.nord9_gui }, -- try, catch, throw
+               PreProc = { fg = nord.nord9_gui }, -- generic Preprocessor
+               Include = { fg = nord.nord9_gui }, -- preprocessor #include
+               Define = { fg = nord.nord9_gui }, -- preprocessor #define
+               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
+               Tag = { fg = nord.nord4_gui }, -- you can use CTRL-] on this
+               Delimiter = { fg = nord.nord6_gui }, -- character that needs attention like , or .
+               SpecialComment = { fg = nord.nord8_gui }, -- special things inside a comment
+               Debug = { fg = nord.nord11_gui }, -- debugging statements
+               Underlined = { fg = nord.nord14_gui, bg = nord.none, style = "underline" }, -- text that stands out, HTML links
+               Ignore = { fg = nord.nord1_gui }, -- left blank, hidden
+               Error = { fg = nord.nord11_gui, 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 = nord.none, bg = nord.nord0_gui },
+
+               htmlLink = { fg = nord.nord14_gui, style = "underline" },
+               htmlH1 = { fg = nord.nord8_gui, style = "bold" },
+               htmlH2 = { fg = nord.nord11_gui, style = "bold" },
+               htmlH3 = { fg = nord.nord14_gui, style = "bold" },
+               htmlH4 = { fg = nord.nord15_gui, style = "bold" },
+               htmlH5 = { fg = nord.nord9_gui, style = "bold" },
+               markdownH1 = { fg = nord.nord8_gui, style = "bold" },
+               markdownH2 = { fg = nord.nord11_gui, style = "bold" },
+               markdownH3 = { fg = nord.nord14_gui, style = "bold" },
+               markdownH1Delimiter = { fg = nord.nord8_gui },
+               markdownH2Delimiter = { fg = nord.nord11_gui },
+               markdownH3Delimiter = { fg = nord.nord14_gui },
+       }
+
+       -- Italic comments
+       if vim.g.nord_italic == false then
+               syntax.Comment = { fg = nord.nord3_gui_bright } -- normal comments
+               syntax.Conditional = { fg = nord.nord9_gui } -- normal if, then, else, endif, switch, etc.
+               syntax.Function = { fg = nord.nord8_gui } -- normal function names
+               syntax.Identifier = { fg = nord.nord9_gui } -- any variable name
+               syntax.Keyword = { fg = nord.nord9_gui } -- normal for, do, while, etc.
+               syntax.Repeat = { fg = nord.nord9_gui } -- normal any other keyword
+               syntax.String = { fg = nord.nord14_gui } -- any string
+       else
+               syntax.Comment = { fg = nord.nord3_gui_bright, bg = nord.none, style = "italic" } -- italic comments
+               syntax.Conditional = { fg = nord.nord9_gui, bg = nord.none, style = "italic" } -- italic if, then, else, endif, switch, etc.
+               syntax.Function = { fg = nord.nord8_gui, bg = nord.none, style = "italic" } -- italic funtion names
+               syntax.Identifier = { fg = nord.nord9_gui, bg = nord.none, style = "italic" } -- any variable name
+               syntax.Keyword = { fg = nord.nord9_gui, bg = nord.none, style = "italic" } -- italic for, do, while, etc.
+               syntax.Repeat = { fg = nord.nord9_gui, bg = nord.none, style = "italic" } -- italic any other keyword
+               syntax.String = { fg = nord.nord14_gui, bg = nord.none, style = "italic" } -- any string
+       end
+
+       return syntax
 end
 
-
-theme.loadEditor = function ()
-    -- Editor highlight groups
-
-  local editor = {
-    NormalFloat =      { fg = nord.nord4_gui, bg = nord.float }, -- normal text and background color
-    FloatBorder =      { fg = nord.nord4_gui, bg = nord.float }, -- normal text and background color
-    ColorColumn =      { fg = nord.none, bg = nord.nord1_gui }, --  used for the columns set with 'colorcolumn'
-    Conceal =          { fg = nord.nord1_gui }, -- placeholder characters substituted for concealed text (see 'conceallevel')
-    Cursor =           { fg = nord.nord4_gui, bg = nord.none, style = 'reverse' }, -- the character under the cursor
-    CursorIM =         { fg = nord.nord5_gui, bg = nord.none, style = 'reverse' }, -- like Cursor, but used when in IME mode
-    Directory =        { fg = nord.nord7_gui, bg = nord.none }, -- directory names (and other special names in listings)
-    DiffAdd =          { fg = nord.nord14_gui, bg = nord.none, style = 'reverse' }, -- diff mode: Added line
-    DiffChange =       { fg = nord.nord13_gui, bg = nord.none, style = 'reverse' }, --  diff mode: Changed line
-    DiffDelete =       { fg = nord.nord11_gui, bg = nord.none, style = 'reverse' }, -- diff mode: Deleted line
-    DiffText =         { fg = nord.nord15_gui, bg = nord.none, style = 'reverse' }, -- diff mode: Changed text within a changed line
-    EndOfBuffer =      { fg = nord.nord1_gui },
-    ErrorMsg =         { fg = nord.none },
-    Folded =           { fg = nord.nord3_gui_bright, bg = nord.none, style = 'italic' },
-    FoldColumn =       { fg = nord.nord7_gui },
-    IncSearch =        { fg = nord.nord6_gui, bg = nord.nord10_gui },
-    LineNr =           { fg = nord.nord3_gui_bright },
-    CursorLineNr =     { fg = nord.nord4_gui },
-    MatchParen =       { fg = nord.nord15_gui, bg = nord.none, style = 'bold' },
-    ModeMsg =          { fg = nord.nord4_gui },
-    MoreMsg =          { fg = nord.nord4_gui },
-    NonText =          { fg = nord.nord1_gui },
-    Pmenu =            { fg = nord.nord4_gui, bg = nord.nord2_gui },
-    PmenuSel =         { fg = nord.nord4_gui, bg = nord.nord10_gui },
-    PmenuSbar =        { fg = nord.nord4_gui, bg = nord.nord2_gui },
-    PmenuThumb =       { fg = nord.nord4_gui, bg = nord.nord4_gui },
-    Question =         { fg = nord.nord14_gui },
-    QuickFixLine =     { fg = nord.nord4_gui, bg = nord.none, style = 'reverse' },
-    qfLineNr =         { fg = nord.nord4_gui, bg = nord.none, style = 'reverse' },
-    Search =           { fg = nord.nord10_gui, bg = nord.nord6_gui, style = 'reverse' },
-    SpecialKey =       { fg = nord.nord9_gui },
-    SpellBad =         { fg = nord.nord11_gui, bg = nord.none, style = 'italic,undercurl' },
-    SpellCap =         { fg = nord.nord7_gui, bg = nord.none, style = 'italic,undercurl' },
-    SpellLocal =       { fg = nord.nord8_gui, bg = nord.none, style = 'italic,undercurl' },
-    SpellRare =        { fg = nord.nord9_gui, bg = nord.none, style = 'italic,undercurl' },
-    StatusLine =       { fg = nord.nord4_gui, bg = nord.nord2_gui },
-    StatusLineNC =     { fg = nord.nord4_gui, bg = nord.nord1_gui },
-    StatusLineTerm =   { fg = nord.nord4_gui, bg = nord.nord2_gui },
-    StatusLineTermNC = { fg = nord.nord4_gui, bg = nord.nord1_gui },
-    TabLineFill =      { fg = nord.nord4_gui, bg = nord.none },
-    TablineSel =       { fg = nord.nord1_gui, bg = nord.nord9_gui },
-    Tabline =          { fg = nord.nord4_gui, bg = nord.nord1_gui },
-    Title =            { fg = nord.nord14_gui, bg = nord.none, style = 'bold' },
-    Visual =           { fg = nord.none, bg = nord.nord2_gui },
-    VisualNOS =        { fg = nord.none, bg = nord.nord2_gui },
-    WarningMsg =       { fg = nord.nord15_gui },
-    WildMenu =         { fg = nord.nord12_gui, bg = nord.none, style = 'bold' },
-    CursorColumn =     { fg = nord.none, bg = nord.cursorlinefg },
-    CursorLine =       { fg = nord.none, bg = nord.cursorlinefg },
-    ToolbarLine =      { fg = nord.nord4_gui, bg = nord.nord1_gui },
-    ToolbarButton =    { fg = nord.nord4_gui, bg = nord.none, style = 'bold' },
-    NormalMode =       { fg = nord.nord4_gui, bg = nord.none, style = 'reverse' },
-    InsertMode =       { fg = nord.nord14_gui, bg = nord.none, style = 'reverse' },
-    ReplacelMode =     { fg = nord.nord11_gui, bg = nord.none, style = 'reverse' },
-    VisualMode =       { fg = nord.nord9_gui, bg = nord.none, style = 'reverse' },
-    CommandMode =      { fg = nord.nord4_gui, bg = nord.none, style = 'reverse' },
-    Warnings =         { fg = nord.nord15_gui },
-
-    healthError =   { fg = nord.nord11_gui },
-    healthSuccess = { fg = nord.nord14_gui },
-    healthWarning = { fg = nord.nord15_gui },
-
-    -- dashboard
-    DashboardShortCut = { fg = nord.nord7_gui },
-    DashboardHeader =   { fg = nord.nord9_gui },
-    DashboardCenter =   { fg = nord.nord8_gui },
-    DashboardFooter =   { fg = nord.nord14_gui, style = "italic" },
-
-    -- BufferLine
-    BufferLineIndicatorSelected = { fg = nord.nord0_gui },
-    BufferLineFill =              { bg = nord.nord0_gui },
-  }
-
-  -- Options:
-
-  --Set transparent background
-  if vim.g.nord_disable_background then
-    editor.Normal =     { fg = nord.nord4_gui, bg = nord.none } -- normal text and background color
-    editor.SignColumn = { fg = nord.nord4_gui, bg = nord.none }
-  else
-    editor.Normal =     { fg = nord.nord4_gui, bg = nord.nord0_gui } -- normal text and background color
-    editor.SignColumn = { fg = nord.nord4_gui, bg = nord.nord0_gui }
-  end
-
-  -- Remove window split borders
-  if vim.g.nord_borders then
-    editor.VertSplit = { fg = nord.nord2_gui }
-  else
-    editor.VertSplit = { fg = nord.nord0_gui }
-  end
-
-  return editor
+theme.loadEditor = function()
+       -- Editor highlight groups
+
+       local editor = {
+               NormalFloat = { fg = nord.nord4_gui, bg = nord.float }, -- normal text and background color
+               FloatBorder = { fg = nord.nord4_gui, bg = nord.float }, -- normal text and background color
+               ColorColumn = { fg = nord.none, bg = nord.nord1_gui }, --  used for the columns set with 'colorcolumn'
+               Conceal = { fg = nord.nord1_gui }, -- placeholder characters substituted for concealed text (see 'conceallevel')
+               Cursor = { fg = nord.nord4_gui, bg = nord.none, style = "reverse" }, -- the character under the cursor
+               CursorIM = { fg = nord.nord5_gui, bg = nord.none, style = "reverse" }, -- like Cursor, but used when in IME mode
+               Directory = { fg = nord.nord7_gui, bg = nord.none }, -- directory names (and other special names in listings)
+               DiffAdd = { fg = nord.nord14_gui, bg = nord.none, style = "reverse" }, -- diff mode: Added line
+               DiffChange = { fg = nord.nord13_gui, bg = nord.none, style = "reverse" }, --  diff mode: Changed line
+               DiffDelete = { fg = nord.nord11_gui, bg = nord.none, style = "reverse" }, -- diff mode: Deleted line
+               DiffText = { fg = nord.nord15_gui, bg = nord.none, style = "reverse" }, -- diff mode: Changed text within a changed line
+               EndOfBuffer = { fg = nord.nord1_gui },
+               ErrorMsg = { fg = nord.none },
+               Folded = { fg = nord.nord3_gui_bright, bg = nord.none, style = "italic" },
+               FoldColumn = { fg = nord.nord7_gui },
+               IncSearch = { fg = nord.nord6_gui, bg = nord.nord10_gui },
+               LineNr = { fg = nord.nord3_gui_bright },
+               CursorLineNr = { fg = nord.nord4_gui },
+               MatchParen = { fg = nord.nord15_gui, bg = nord.none, style = "bold" },
+               ModeMsg = { fg = nord.nord4_gui },
+               MoreMsg = { fg = nord.nord4_gui },
+               NonText = { fg = nord.nord1_gui },
+               Pmenu = { fg = nord.nord4_gui, bg = nord.nord2_gui },
+               PmenuSel = { fg = nord.nord4_gui, bg = nord.nord10_gui },
+               PmenuSbar = { fg = nord.nord4_gui, bg = nord.nord2_gui },
+               PmenuThumb = { fg = nord.nord4_gui, bg = nord.nord4_gui },
+               Question = { fg = nord.nord14_gui },
+               QuickFixLine = { fg = nord.nord4_gui, bg = nord.none, style = "reverse" },
+               qfLineNr = { fg = nord.nord4_gui, bg = nord.none, style = "reverse" },
+               Search = { fg = nord.nord10_gui, bg = nord.nord6_gui, style = "reverse" },
+               SpecialKey = { fg = nord.nord9_gui },
+               SpellBad = { fg = nord.nord11_gui, bg = nord.none, style = "italic,undercurl" },
+               SpellCap = { fg = nord.nord7_gui, bg = nord.none, style = "italic,undercurl" },
+               SpellLocal = { fg = nord.nord8_gui, bg = nord.none, style = "italic,undercurl" },
+               SpellRare = { fg = nord.nord9_gui, bg = nord.none, style = "italic,undercurl" },
+               StatusLine = { fg = nord.nord4_gui, bg = nord.nord2_gui },
+               StatusLineNC = { fg = nord.nord4_gui, bg = nord.nord1_gui },
+               StatusLineTerm = { fg = nord.nord4_gui, bg = nord.nord2_gui },
+               StatusLineTermNC = { fg = nord.nord4_gui, bg = nord.nord1_gui },
+               TabLineFill = { fg = nord.nord4_gui, bg = nord.none },
+               TablineSel = { fg = nord.nord1_gui, bg = nord.nord9_gui },
+               Tabline = { fg = nord.nord4_gui, bg = nord.nord1_gui },
+               Title = { fg = nord.nord14_gui, bg = nord.none, style = "bold" },
+               Visual = { fg = nord.none, bg = nord.nord2_gui },
+               VisualNOS = { fg = nord.none, bg = nord.nord2_gui },
+               WarningMsg = { fg = nord.nord15_gui },
+               WildMenu = { fg = nord.nord12_gui, bg = nord.none, style = "bold" },
+               CursorColumn = { fg = nord.none, bg = nord.cursorlinefg },
+               CursorLine = { fg = nord.none, bg = nord.cursorlinefg },
+               ToolbarLine = { fg = nord.nord4_gui, bg = nord.nord1_gui },
+               ToolbarButton = { fg = nord.nord4_gui, bg = nord.none, style = "bold" },
+               NormalMode = { fg = nord.nord4_gui, bg = nord.none, style = "reverse" },
+               InsertMode = { fg = nord.nord14_gui, bg = nord.none, style = "reverse" },
+               ReplacelMode = { fg = nord.nord11_gui, bg = nord.none, style = "reverse" },
+               VisualMode = { fg = nord.nord9_gui, bg = nord.none, style = "reverse" },
+               CommandMode = { fg = nord.nord4_gui, bg = nord.none, style = "reverse" },
+               Warnings = { fg = nord.nord15_gui },
+
+               healthError = { fg = nord.nord11_gui },
+               healthSuccess = { fg = nord.nord14_gui },
+               healthWarning = { fg = nord.nord15_gui },
+
+               -- dashboard
+               DashboardShortCut = { fg = nord.nord7_gui },
+               DashboardHeader = { fg = nord.nord9_gui },
+               DashboardCenter = { fg = nord.nord8_gui },
+               DashboardFooter = { fg = nord.nord14_gui, style = "italic" },
+
+               -- BufferLine
+               BufferLineIndicatorSelected = { fg = nord.nord0_gui },
+               BufferLineFill = { bg = nord.nord0_gui },
+       }
+
+       -- Options:
+
+       --Set transparent background
+       if vim.g.nord_disable_background then
+               editor.Normal = { fg = nord.nord4_gui, bg = nord.none } -- normal text and background color
+               editor.SignColumn = { fg = nord.nord4_gui, bg = nord.none }
+       else
+               editor.Normal = { fg = nord.nord4_gui, bg = nord.nord0_gui } -- normal text and background color
+               editor.SignColumn = { fg = nord.nord4_gui, bg = nord.nord0_gui }
+       end
+
+       -- Remove window split borders
+       if vim.g.nord_borders then
+               editor.VertSplit = { fg = nord.nord2_gui }
+       else
+               editor.VertSplit = { fg = nord.nord0_gui }
+       end
+
+       return editor
 end
 
-theme.loadTerminal = function ()
-  vim.g.terminal_color_0 = nord.nord1_gui
-  vim.g.terminal_color_1 = nord.nord11_gui
-  vim.g.terminal_color_2 = nord.nord14_gui
-  vim.g.terminal_color_3 = nord.nord13_gui
-  vim.g.terminal_color_4 = nord.nord9_gui
-  vim.g.terminal_color_5 = nord.nord15_gui
-  vim.g.terminal_color_6 = nord.nord8_gui
-  vim.g.terminal_color_7 = nord.nord5_gui
-  vim.g.terminal_color_8 = nord.nord3_gui
-  vim.g.terminal_color_9 = nord.nord11_gui
-  vim.g.terminal_color_10 = nord.nord14_gui
-  vim.g.terminal_color_11 = nord.nord13_gui
-  vim.g.terminal_color_12 = nord.nord9_gui
-  vim.g.terminal_color_13 = nord.nord15_gui
-  vim.g.terminal_color_14 = nord.nord7_gui
-  vim.g.terminal_color_15 = nord.nord6_gui
+theme.loadTerminal = function()
+       vim.g.terminal_color_0 = nord.nord1_gui
+       vim.g.terminal_color_1 = nord.nord11_gui
+       vim.g.terminal_color_2 = nord.nord14_gui
+       vim.g.terminal_color_3 = nord.nord13_gui
+       vim.g.terminal_color_4 = nord.nord9_gui
+       vim.g.terminal_color_5 = nord.nord15_gui
+       vim.g.terminal_color_6 = nord.nord8_gui
+       vim.g.terminal_color_7 = nord.nord5_gui
+       vim.g.terminal_color_8 = nord.nord3_gui
+       vim.g.terminal_color_9 = nord.nord11_gui
+       vim.g.terminal_color_10 = nord.nord14_gui
+       vim.g.terminal_color_11 = nord.nord13_gui
+       vim.g.terminal_color_12 = nord.nord9_gui
+       vim.g.terminal_color_13 = nord.nord15_gui
+       vim.g.terminal_color_14 = nord.nord7_gui
+       vim.g.terminal_color_15 = nord.nord6_gui
 end
 
-theme.loadTreeSitter = function ()
-  -- TreeSitter highlight groups
-
-  local treesitter = {
-    TSAnnotation =        { fg = nord.nord12_gui },    -- For C++/Dart attributes, annotations thatcan be attached to the code to denote some kind of meta information.
-    TSConstructor =       { fg = nord.nord9_gui }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors.
-    TSConstant =          { fg = nord.nord13_gui },    -- For constants
-    TSFloat =             { fg = nord.nord15_gui },    -- For floats
-    TSNumber =            { fg = nord.nord15_gui },    -- For all number
-
-    TSAttribute =         { fg = nord.nord15_gui },    -- (unstable) TODO: docs
-    TSVariable =          { fg = nord.nord4_gui, style = 'bold' }, -- Any variable name that does not have another highlight.
-    TSVariableBuiltin =   { fg = nord.nord4_gui, style = 'bold' },
-    TSBoolean =           { fg = nord.nord9_gui, style = 'bold' },    -- For booleans.
-    TSConstBuiltin =      { fg = nord.nord7_gui, style = 'bold' },    -- For constant that are built in the language: `nil` in Lua.
-    TSConstMacro =        { fg = nord.nord7_gui, style = 'bold' },    -- For constants that are defined by macros: `NULL` in C.
-    TSError =             { fg = nord.nord11_gui },    -- For syntax/parser errors.
-    TSException =         { fg = nord.nord15_gui },    -- For exception related keywords.
-    TSFuncMacro =         { fg = nord.nord7_gui },    -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
-    TSInclude =           { fg = nord.nord9_gui },    -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
-    TSLabel =             { fg = nord.nord15_gui }, -- For labels: `label:` in C and `:label:` in Lua.
-    TSOperator =          { fg = nord.nord9_gui }, -- For any operator: `+`, but also `->` and `*` in C.
-    TSParameter =         { fg = nord.nord10_gui }, -- For parameters of a function.
-    TSParameterReference= { fg = nord.nord10_gui },    -- For references to parameters of a function.
-    TSPunctDelimiter =    { fg = nord.nord8_gui }, -- For delimiters ie: `.`
-    TSPunctBracket =      { fg = nord.nord8_gui }, -- For brackets and parens.
-    TSPunctSpecial =      { fg = nord.nord8_gui }, -- For special punctutation that does not fall in the catagories before.
-    TSSymbol =            { fg = nord.nord15_gui },    -- For identifiers referring to symbols or atoms.
-    TSType =              { fg = nord.nord9_gui},    -- For types.
-    TSTypeBuiltin =       { fg = nord.nord9_gui},    -- For builtin types.
-    TSTag =               { fg = nord.nord4_gui },    -- Tags like html tag names.
-    TSTagDelimiter =      { fg = nord.nord15_gui },    -- Tag delimiter like `<` `>` `/`
-    TSText =              { fg = nord.nord4_gui },    -- For strings considenord11_gui text in a markup language.
-    TSTextReference =     { fg = nord.nord15_gui }, -- FIXME
-    TSEmphasis =          { fg = nord.nord10_gui },    -- For text to be represented with emphasis.
-    TSUnderline =         { fg = nord.nord4_gui, bg = nord.none, style = 'underline' },    -- For text to be represented with an underline.
-    TSTitle =             { fg = nord.nord10_gui, bg = nord.none, style = 'bold' },    -- Text that is part of a title.
-    TSLiteral =           { fg = nord.nord4_gui },    -- Literal text.
-    TSURI =               { fg = nord.nord14_gui },    -- Any URI like a link or email.
-    TSAnnotation =        { fg = nord.nord11_gui },    -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
-  }
-
-
-  if vim.g.nord_italic == false then
-    -- Comments
-    treesitter.TSComment =         { fg = nord.nord3_gui_bright }
-    -- Conditionals
-    treesitter.TSConditional =     { fg = nord.nord9_gui } -- For keywords related to conditionnals.
-    -- Function names
-    treesitter.TSFunction =        { fg = nord.nord8_gui } -- For fuction (calls and definitions).
-    treesitter.TSMethod =          { fg = nord.nord7_gui } -- For method calls and definitions.
-    treesitter.TSFuncBuiltin =     { fg = nord.nord8_gui }
-    -- Namespaces and property accessors
-    treesitter.TSNamespace =       { fg = nord.nord4_gui } -- For identifiers referring to modules and namespaces.
-    treesitter.TSField =           { fg = nord.nord4_gui } -- For fields in literals
-    treesitter.TSProperty =        { fg = nord.nord10_gui } -- Same as `TSField`
-    -- Language keywords
-    treesitter.TSKeyword =         { fg = nord.nord9_gui } -- For keywords that don't fall in other categories.
-    treesitter.TSKeywordFunction = { fg = nord.nord8_gui }
-    treesitter.TSKeywordReturn =   { fg = nord.nord8_gui }
-    treesitter.TSKeywordOperator = { fg = nord.nord8_gui }
-    treesitter.TSRepeat =          { fg = nord.nord9_gui } -- For keywords related to loops.
-    -- Strings
-    treesitter.TSString =          { fg = nord.nord14_gui } -- For strings.
-    treesitter.TSStringRegex =     { fg = nord.nord7_gui } -- For regexes.
-    treesitter.TSStringEscape =    { fg = nord.nord15_gui } -- For escape characters within a string.
-    treesitter.TSCharacter =       { fg = nord.nord14_gui } -- For characters.
-  else
-    -- Comments
-    treesitter.TSComment =         { fg = nord.nord3_gui_bright, style = 'italic' }
-    -- Conditionals
-    treesitter.TSConditional =     { fg = nord.nord9_gui, style = 'italic' } -- For keywords related to conditionnals.
-    -- Function names
-    treesitter.TSFunction =        { fg = nord.nord8_gui, style = 'italic' } -- For fuction (calls and definitions).
-    treesitter.TSMethod =          { fg = nord.nord7_gui, style = 'italic' } -- For method calls and definitions.
-    treesitter.TSFuncBuiltin =     { fg = nord.nord8_gui, style = 'italic' }
-    -- Namespaces and property accessors
-    treesitter.TSNamespace =       { fg = nord.nord4_gui, style = 'italic' } -- For identifiers referring to modules and namespaces.
-    treesitter.TSField =           { fg = nord.nord4_gui, style = 'italic' } -- For fields.
-    treesitter.TSProperty =        { fg = nord.nord10_gui, style = 'italic' } -- Same as `TSField`, but when accessing, not declaring.
-    -- Language keywords
-    treesitter.TSKeyword =         { fg = nord.nord9_gui, style = 'italic' } -- For keywords that don't fall in other categories.
-    treesitter.TSKeywordFunction = { fg = nord.nord8_gui, style = 'italic' }
-    treesitter.TSKeywordReturn =   { fg = nord.nord8_gui, style = 'italic' }
-    treesitter.TSKeywordOperator = { fg = nord.nord8_gui, style = 'italic' }
-    treesitter.TSRepeat =          { fg = nord.nord9_gui, style = 'italic' } -- For keywords related to loops.
-    -- Strings
-    treesitter.TSString =          { fg = nord.nord14_gui, style = 'italic' } -- For strings.
-    treesitter.TSStringRegex =     { fg = nord.nord7_gui, style = 'italic' } -- For regexes.
-    treesitter.TSStringEscape =    { fg = nord.nord15_gui, style = 'italic' } -- For escape characters within a string.
-    treesitter.TSCharacter =       { fg = nord.nord14_gui, style = 'italic' } -- For characters.
-  end
-
-  return treesitter
-
+theme.loadTreeSitter = function()
+       -- TreeSitter highlight groups
+
+       local treesitter = {
+               TSAnnotation = { fg = nord.nord12_gui }, -- For C++/Dart attributes, annotations thatcan be attached to the code to denote some kind of meta information.
+               TSConstructor = { fg = nord.nord9_gui }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors.
+               TSConstant = { fg = nord.nord13_gui }, -- For constants
+               TSFloat = { fg = nord.nord15_gui }, -- For floats
+               TSNumber = { fg = nord.nord15_gui }, -- For all number
+
+               TSAttribute = { fg = nord.nord15_gui }, -- (unstable) TODO: docs
+               TSVariable = { fg = nord.nord4_gui, style = "bold" }, -- Any variable name that does not have another highlight.
+               TSVariableBuiltin = { fg = nord.nord4_gui, style = "bold" },
+               TSBoolean = { fg = nord.nord9_gui, style = "bold" }, -- For booleans.
+               TSConstBuiltin = { fg = nord.nord7_gui, style = "bold" }, -- For constant that are built in the language: `nil` in Lua.
+               TSConstMacro = { fg = nord.nord7_gui, style = "bold" }, -- For constants that are defined by macros: `NULL` in C.
+               TSError = { fg = nord.nord11_gui }, -- For syntax/parser errors.
+               TSException = { fg = nord.nord15_gui }, -- For exception related keywords.
+               TSFuncMacro = { fg = nord.nord7_gui }, -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
+               TSInclude = { fg = nord.nord9_gui }, -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
+               TSLabel = { fg = nord.nord15_gui }, -- For labels: `label:` in C and `:label:` in Lua.
+               TSOperator = { fg = nord.nord9_gui }, -- For any operator: `+`, but also `->` and `*` in C.
+               TSParameter = { fg = nord.nord10_gui }, -- For parameters of a function.
+               TSParameterReference = { fg = nord.nord10_gui }, -- For references to parameters of a function.
+               TSPunctDelimiter = { fg = nord.nord8_gui }, -- For delimiters ie: `.`
+               TSPunctBracket = { fg = nord.nord8_gui }, -- For brackets and parens.
+               TSPunctSpecial = { fg = nord.nord8_gui }, -- For special punctutation that does not fall in the catagories before.
+               TSSymbol = { fg = nord.nord15_gui }, -- For identifiers referring to symbols or atoms.
+               TSType = { fg = nord.nord9_gui }, -- For types.
+               TSTypeBuiltin = { fg = nord.nord9_gui }, -- For builtin types.
+               TSTag = { fg = nord.nord4_gui }, -- Tags like html tag names.
+               TSTagDelimiter = { fg = nord.nord15_gui }, -- Tag delimiter like `<` `>` `/`
+               TSText = { fg = nord.nord4_gui }, -- For strings considenord11_gui text in a markup language.
+               TSTextReference = { fg = nord.nord15_gui }, -- FIXME
+               TSEmphasis = { fg = nord.nord10_gui }, -- For text to be represented with emphasis.
+               TSUnderline = { fg = nord.nord4_gui, bg = nord.none, style = "underline" }, -- For text to be represented with an underline.
+               TSTitle = { fg = nord.nord10_gui, bg = nord.none, style = "bold" }, -- Text that is part of a title.
+               TSLiteral = { fg = nord.nord4_gui }, -- Literal text.
+               TSURI = { fg = nord.nord14_gui }, -- Any URI like a link or email.
+               TSAnnotation = { fg = nord.nord11_gui }, -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
+       }
+
+       if vim.g.nord_italic == false then
+               -- Comments
+               treesitter.TSComment = { fg = nord.nord3_gui_bright }
+               -- Conditionals
+               treesitter.TSConditional = { fg = nord.nord9_gui } -- For keywords related to conditionnals.
+               -- Function names
+               treesitter.TSFunction = { fg = nord.nord8_gui } -- For fuction (calls and definitions).
+               treesitter.TSMethod = { fg = nord.nord7_gui } -- For method calls and definitions.
+               treesitter.TSFuncBuiltin = { fg = nord.nord8_gui }
+               -- Namespaces and property accessors
+               treesitter.TSNamespace = { fg = nord.nord4_gui } -- For identifiers referring to modules and namespaces.
+               treesitter.TSField = { fg = nord.nord4_gui } -- For fields in literals
+               treesitter.TSProperty = { fg = nord.nord10_gui } -- Same as `TSField`
+               -- Language keywords
+               treesitter.TSKeyword = { fg = nord.nord9_gui } -- For keywords that don't fall in other categories.
+               treesitter.TSKeywordFunction = { fg = nord.nord8_gui }
+               treesitter.TSKeywordReturn = { fg = nord.nord8_gui }
+               treesitter.TSKeywordOperator = { fg = nord.nord8_gui }
+               treesitter.TSRepeat = { fg = nord.nord9_gui } -- For keywords related to loops.
+               -- Strings
+               treesitter.TSString = { fg = nord.nord14_gui } -- For strings.
+               treesitter.TSStringRegex = { fg = nord.nord7_gui } -- For regexes.
+               treesitter.TSStringEscape = { fg = nord.nord15_gui } -- For escape characters within a string.
+               treesitter.TSCharacter = { fg = nord.nord14_gui } -- For characters.
+       else
+               -- Comments
+               treesitter.TSComment = { fg = nord.nord3_gui_bright, style = "italic" }
+               -- Conditionals
+               treesitter.TSConditional = { fg = nord.nord9_gui, style = "italic" } -- For keywords related to conditionnals.
+               -- Function names
+               treesitter.TSFunction = { fg = nord.nord8_gui, style = "italic" } -- For fuction (calls and definitions).
+               treesitter.TSMethod = { fg = nord.nord7_gui, style = "italic" } -- For method calls and definitions.
+               treesitter.TSFuncBuiltin = { fg = nord.nord8_gui, style = "italic" }
+               -- Namespaces and property accessors
+               treesitter.TSNamespace = { fg = nord.nord4_gui, style = "italic" } -- For identifiers referring to modules and namespaces.
+               treesitter.TSField = { fg = nord.nord4_gui, style = "italic" } -- For fields.
+               treesitter.TSProperty = { fg = nord.nord10_gui, style = "italic" } -- Same as `TSField`, but when accessing, not declaring.
+               -- Language keywords
+               treesitter.TSKeyword = { fg = nord.nord9_gui, style = "italic" } -- For keywords that don't fall in other categories.
+               treesitter.TSKeywordFunction = { fg = nord.nord8_gui, style = "italic" }
+               treesitter.TSKeywordReturn = { fg = nord.nord8_gui, style = "italic" }
+               treesitter.TSKeywordOperator = { fg = nord.nord8_gui, style = "italic" }
+               treesitter.TSRepeat = { fg = nord.nord9_gui, style = "italic" } -- For keywords related to loops.
+               -- Strings
+               treesitter.TSString = { fg = nord.nord14_gui, style = "italic" } -- For strings.
+               treesitter.TSStringRegex = { fg = nord.nord7_gui, style = "italic" } -- For regexes.
+               treesitter.TSStringEscape = { fg = nord.nord15_gui, style = "italic" } -- For escape characters within a string.
+               treesitter.TSCharacter = { fg = nord.nord14_gui, style = "italic" } -- For characters.
+       end
+
+       return treesitter
 end
 
-theme.loadLSP = function ()
-  -- Lsp highlight groups
-
-  local lsp = {
-    LspDiagnosticsDefaultError =           { fg = nord.nord11_gui }, -- used for "Error" diagnostic virtual text
-    LspDiagnosticsSignError =              { fg = nord.nord11_gui }, -- used for "Error" diagnostic signs in sign column
-    LspDiagnosticsFloatingError =          { fg = nord.nord11_gui }, -- used for "Error" diagnostic messages in the diagnostics float
-    LspDiagnosticsVirtualTextError =       { fg = nord.nord11_gui }, -- Virtual text "Error"
-    LspDiagnosticsUnderlineError =         { style = 'undercurl', sp = nord.nord11_gui }, -- used to underline "Error" diagnostics.
-    LspDiagnosticsDefaultWarning =         { fg = nord.nord15_gui}, -- used for "Warning" diagnostic signs in sign column
-    LspDiagnosticsSignWarning =            { fg = nord.nord15_gui}, -- used for "Warning" diagnostic signs in sign column
-    LspDiagnosticsFloatingWarning =        { fg = nord.nord15_gui}, -- used for "Warning" diagnostic messages in the diagnostics float
-    LspDiagnosticsVirtualTextWarning =     { fg = nord.nord15_gui}, -- Virtual text "Warning"
-    LspDiagnosticsUnderlineWarning =       { style = 'undercurl', sp = nord.nord15_gui }, -- used to underline "Warning" diagnostics.
-    LspDiagnosticsDefaultInformation =     { fg = nord.nord10_gui }, -- used for "Information" diagnostic virtual text
-    LspDiagnosticsSignInformation =        { fg = nord.nord10_gui },  -- used for "Information" diagnostic signs in sign column
-    LspDiagnosticsFloatingInformation =    { fg = nord.nord10_gui }, -- used for "Information" diagnostic messages in the diagnostics float
-    LspDiagnosticsVirtualTextInformation = { fg = nord.nord10_gui }, -- Virtual text "Information"
-    LspDiagnosticsUnderlineInformation =   { style = 'undercurl', sp = nord.nord10_gui }, -- used to underline "Information" diagnostics.
-    LspDiagnosticsDefaultHint =            { fg = nord.nord9_gui  },  -- used for "Hint" diagnostic virtual text
-    LspDiagnosticsSignHint =               { fg = nord.nord9_gui  }, -- used for "Hint" diagnostic signs in sign column
-    LspDiagnosticsFloatingHint =           { fg = nord.nord9_gui  }, -- used for "Hint" diagnostic messages in the diagnostics float
-    LspDiagnosticsVirtualTextHint =        { fg = nord.nord9_gui  }, -- Virtual text "Hint"
-    LspDiagnosticsUnderlineHint =          { style = 'undercurl', sp = nord.nord10_gui }, -- used to underline "Hint" diagnostics.
-    LspReferenceText =                     { fg = nord.nord4_gui, bg = nord.nord1_gui }, -- used for highlighting "text" references
-    LspReferenceRead =                     { fg = nord.nord4_gui, bg = nord.nord1_gui }, -- used for highlighting "read" references
-    LspReferenceWrite =                    { fg = nord.nord4_gui, bg = nord.nord1_gui }, -- used for highlighting "write" references
-
-    DiagnosticError            = { link = "LspDiagnosticsDefaultError" },
-    DiagnosticWarn             = { link = "LspDiagnosticsDefaultWarning" },
-    DiagnosticInfo             = { link = "LspDiagnosticsDefaultInformation" },
-    DiagnosticHint             = { link = "LspDiagnosticsDefaultHint" },
-    DiagnosticVirtualTextWarn  = { link = "LspDiagnosticsVirtualTextWarning" },
-    DiagnosticUnderlineWarn    = { link = "LspDiagnosticsUnderlineWarning" },
-    DiagnosticFloatingWarn     = { link = "LspDiagnosticsFloatingWarning" },
-    DiagnosticSignWarn         = { link = "LspDiagnosticsSignWarning" },
-    DiagnosticVirtualTextError = { link = "LspDiagnosticsVirtualTextError" },
-    DiagnosticUnderlineError   = { link = "LspDiagnosticsUnderlineError" },
-    DiagnosticFloatingError    = { link = "LspDiagnosticsFloatingError" },
-    DiagnosticSignError        = { link = "LspDiagnosticsSignError" },
-    DiagnosticVirtualTextInfo  = { link = "LspDiagnosticsVirtualTextInformation" },
-    DiagnosticUnderlineInfo    = { link = "LspDiagnosticsUnderlineInformation" },
-    DiagnosticFloatingInfo     = { link = "LspDiagnosticsFloatingInformation" },
-    DiagnosticSignInfo         = { link = "LspDiagnosticsSignInformation" },
-    DiagnosticVirtualTextHint  = { link = "LspDiagnosticsVirtualTextHint" },
-    DiagnosticUnderlineHint    = { link = "LspDiagnosticsUnderlineHint" },
-    DiagnosticFloatingHint     = { link = "LspDiagnosticsFloatingHint" },
-    DiagnosticSignHint         = { link = "LspDiagnosticsSignHint" },
-
-  }
-
-  return lsp
-
+theme.loadLSP = function()
+       -- Lsp highlight groups
+
+       local lsp = {
+               LspDiagnosticsDefaultError = { fg = nord.nord11_gui }, -- used for "Error" diagnostic virtual text
+               LspDiagnosticsSignError = { fg = nord.nord11_gui }, -- used for "Error" diagnostic signs in sign column
+               LspDiagnosticsFloatingError = { fg = nord.nord11_gui }, -- used for "Error" diagnostic messages in the diagnostics float
+               LspDiagnosticsVirtualTextError = { fg = nord.nord11_gui }, -- Virtual text "Error"
+               LspDiagnosticsUnderlineError = { style = "undercurl", sp = nord.nord11_gui }, -- used to underline "Error" diagnostics.
+               LspDiagnosticsDefaultWarning = { fg = nord.nord15_gui }, -- used for "Warning" diagnostic signs in sign column
+               LspDiagnosticsSignWarning = { fg = nord.nord15_gui }, -- used for "Warning" diagnostic signs in sign column
+               LspDiagnosticsFloatingWarning = { fg = nord.nord15_gui }, -- used for "Warning" diagnostic messages in the diagnostics float
+               LspDiagnosticsVirtualTextWarning = { fg = nord.nord15_gui }, -- Virtual text "Warning"
+               LspDiagnosticsUnderlineWarning = { style = "undercurl", sp = nord.nord15_gui }, -- used to underline "Warning" diagnostics.
+               LspDiagnosticsDefaultInformation = { fg = nord.nord10_gui }, -- used for "Information" diagnostic virtual text
+               LspDiagnosticsSignInformation = { fg = nord.nord10_gui }, -- used for "Information" diagnostic signs in sign column
+               LspDiagnosticsFloatingInformation = { fg = nord.nord10_gui }, -- used for "Information" diagnostic messages in the diagnostics float
+               LspDiagnosticsVirtualTextInformation = { fg = nord.nord10_gui }, -- Virtual text "Information"
+               LspDiagnosticsUnderlineInformation = { style = "undercurl", sp = nord.nord10_gui }, -- used to underline "Information" diagnostics.
+               LspDiagnosticsDefaultHint = { fg = nord.nord9_gui }, -- used for "Hint" diagnostic virtual text
+               LspDiagnosticsSignHint = { fg = nord.nord9_gui }, -- used for "Hint" diagnostic signs in sign column
+               LspDiagnosticsFloatingHint = { fg = nord.nord9_gui }, -- used for "Hint" diagnostic messages in the diagnostics float
+               LspDiagnosticsVirtualTextHint = { fg = nord.nord9_gui }, -- Virtual text "Hint"
+               LspDiagnosticsUnderlineHint = { style = "undercurl", sp = nord.nord10_gui }, -- used to underline "Hint" diagnostics.
+               LspReferenceText = { fg = nord.nord4_gui, bg = nord.nord1_gui }, -- used for highlighting "text" references
+               LspReferenceRead = { fg = nord.nord4_gui, bg = nord.nord1_gui }, -- used for highlighting "read" references
+               LspReferenceWrite = { fg = nord.nord4_gui, bg = nord.nord1_gui }, -- used for highlighting "write" references
+
+               DiagnosticError = { link = "LspDiagnosticsDefaultError" },
+               DiagnosticWarn = { link = "LspDiagnosticsDefaultWarning" },
+               DiagnosticInfo = { link = "LspDiagnosticsDefaultInformation" },
+               DiagnosticHint = { link = "LspDiagnosticsDefaultHint" },
+               DiagnosticVirtualTextWarn = { link = "LspDiagnosticsVirtualTextWarning" },
+               DiagnosticUnderlineWarn = { link = "LspDiagnosticsUnderlineWarning" },
+               DiagnosticFloatingWarn = { link = "LspDiagnosticsFloatingWarning" },
+               DiagnosticSignWarn = { link = "LspDiagnosticsSignWarning" },
+               DiagnosticVirtualTextError = { link = "LspDiagnosticsVirtualTextError" },
+               DiagnosticUnderlineError = { link = "LspDiagnosticsUnderlineError" },
+               DiagnosticFloatingError = { link = "LspDiagnosticsFloatingError" },
+               DiagnosticSignError = { link = "LspDiagnosticsSignError" },
+               DiagnosticVirtualTextInfo = { link = "LspDiagnosticsVirtualTextInformation" },
+               DiagnosticUnderlineInfo = { link = "LspDiagnosticsUnderlineInformation" },
+               DiagnosticFloatingInfo = { link = "LspDiagnosticsFloatingInformation" },
+               DiagnosticSignInfo = { link = "LspDiagnosticsSignInformation" },
+               DiagnosticVirtualTextHint = { link = "LspDiagnosticsVirtualTextHint" },
+               DiagnosticUnderlineHint = { link = "LspDiagnosticsUnderlineHint" },
+               DiagnosticFloatingHint = { link = "LspDiagnosticsFloatingHint" },
+               DiagnosticSignHint = { link = "LspDiagnosticsSignHint" },
+       }
+
+       return lsp
 end
 
 theme.loadPlugins = function()
-  -- Plugins highlight groups
-
-  local plugins = {
-
-    -- LspTrouble
-    LspTroubleText =   { fg = nord.nord4_gui },
-    LspTroubleCount =  { fg = nord.nord9_gui, bg = nord.nord10_gui },
-    LspTroubleNormal = { fg = nord.nord4_gui, bg = nord.sidebar },
-
-    -- Diff
-    diffAdded =     { fg = nord.nord14_gui },
-    diffRemoved =   { fg = nord.nord11_gui },
-    diffChanged =   { fg = nord.nord15_gui },
-    diffOldFile =   { fg = nord.yelow },
-    diffNewFile =   { fg = nord.nord12_gui },
-    diffFile =      { fg = nord.nord7_gui },
-    diffLine =      { fg = nord.nord3_gui },
-    diffIndexLine = { fg = nord.nord9_gui },
-
-    -- Neogit
-    NeogitBranch =               { fg = nord.nord10_gui },
-    NeogitRemote =               { fg = nord.nord9_gui },
-    NeogitHunkHeader =           { fg = nord.nord8_gui },
-    NeogitHunkHeaderHighlight =  { fg = nord.nord8_gui, bg = nord.nord1_gui },
-    NeogitDiffContextHighlight = { bg = nord.nord1_gui },
-    NeogitDiffDeleteHighlight =  { fg = nord.nord11_gui, style='reverse' },
-    NeogitDiffAddHighlight =     { fg = nord.nord14_gui, style='reverse' },
-
-    -- GitGutter
-    GitGutterAdd =    { fg = nord.nord14_gui }, -- diff mode: Added line |diff.txt|
-    GitGutterChange = { fg = nord.nord15_gui }, -- diff mode: Changed line |diff.txt|
-    GitGutterDelete = { fg = nord.nord11_gui }, -- diff mode: Deleted line |diff.txt|
-
-    -- GitSigns
-    GitSignsAdd =      { fg = nord.nord14_gui }, -- diff mode: Added line |diff.txt|
-    GitSignsAddNr =    { fg = nord.nord14_gui }, -- diff mode: Added line |diff.txt|
-    GitSignsAddLn =    { fg = nord.nord14_gui }, -- diff mode: Added line |diff.txt|
-    GitSignsChange =   { fg = nord.nord15_gui }, -- diff mode: Changed line |diff.txt|
-    GitSignsChangeNr = { fg = nord.nord15_gui }, -- diff mode: Changed line |diff.txt|
-    GitSignsChangeLn = { fg = nord.nord15_gui }, -- diff mode: Changed line |diff.txt|
-    GitSignsDelete =   { fg = nord.nord11_gui }, -- diff mode: Deleted line |diff.txt|
-    GitSignsDeleteNr = { fg = nord.nord11_gui }, -- diff mode: Deleted line |diff.txt|
-    GitSignsDeleteLn = { fg = nord.nord11_gui }, -- diff mode: Deleted line |diff.txt|
-
-    -- Telescope
-    TelescopePromptBorder =   { fg = nord.nord8_gui },
-    TelescopeResultsBorder =  { fg = nord.nord9_gui },
-    TelescopePreviewBorder =  { fg = nord.nord14_gui },
-    TelescopeSelectionCaret = { fg = nord.nord9_gui },
-    TelescopeSelection =      { fg = nord.nord9_gui },
-    TelescopeMatching =       { fg = nord.nord8_gui },
-
-    -- NvimTree
-    NvimTreeRootFolder =        { fg = nord.nord7_gui, style = "bold" },
-    NvimTreeGitDirty =          { fg = nord.nord15_gui },
-    NvimTreeGitNew =            { fg = nord.nord14_gui },
-    NvimTreeImageFile =         { fg = nord.nord15_gui },
-    NvimTreeExecFile =          { fg = nord.nord14_gui },
-    NvimTreeSpecialFile =       { fg = nord.nord9_gui , style = "underline" },
-    NvimTreeFolderName=         { fg = nord.nord10_gui },
-    NvimTreeEmptyFolderName=    { fg = nord.nord1_gui },
-    NvimTreeFolderIcon=         { fg = nord.nord4_gui },
-    NvimTreeIndentMarker =      { fg  = nord.nord1_gui },
-    LspDiagnosticsError =       { fg = nord.nord11_gui },
-    LspDiagnosticsWarning =     { fg = nord.nord15_gui },
-    LspDiagnosticsInformation = { fg = nord.nord10_gui },
-    LspDiagnosticsHint =        { fg = nord.nord9_gui },
-
-    -- WhichKey
-    WhichKey =          { fg = nord.nord4_gui , style = 'bold'},
-    WhichKeyGroup =     { fg = nord.nord4_gui },
-    WhichKeyDesc =      { fg = nord.nord7_gui, style = 'italic' },
-    WhichKeySeperator = { fg = nord.nord4_gui },
-    WhichKeyFloating =  { bg = nord.float },
-    WhichKeyFloat =     { bg = nord.float },
-
-    -- LspSaga
-    DiagnosticError =            { fg = nord.nord11_gui },
-    DiagnosticWarning =          { fg = nord.nord15_gui },
-    DiagnosticInformation =      { fg = nord.nord10_gui },
-    DiagnosticHint =             { fg = nord.nord9_gui },
-    DiagnosticTruncateLine =     { fg = nord.nord4_gui },
-    LspFloatWinNormal =          { bg = nord.nord2_gui },
-    LspFloatWinBorder =          { fg = nord.nord9_gui },
-    LspSagaBorderTitle =         { fg = nord.nord8_gui },
-    LspSagaHoverBorder =         { fg = nord.nord10_gui },
-    LspSagaRenameBorder =        { fg = nord.nord14_gui },
-    LspSagaDefPreviewBorder =    { fg = nord.nord14_gui },
-    LspSagaCodeActionBorder =    { fg = nord.nord7_gui },
-    LspSagaFinderSelection =     { fg = nord.nord14_gui },
-    LspSagaCodeActionTitle =     { fg = nord.nord10_gui },
-    LspSagaCodeActionContent =   { fg = nord.nord9_gui },
-    LspSagaSignatureHelpBorder = { fg = nord.nord13_gui },
-    ReferencesCount =            { fg = nord.nord9_gui },
-    DefinitionCount =            { fg = nord.nord9_gui },
-    DefinitionIcon =             { fg = nord.nord7_gui },
-    ReferencesIcon =             { fg = nord.nord7_gui },
-    TargetWord =                 { fg = nord.nord8_gui },
-
-    -- Sneak
-    Sneak =      { fg = nord.nord0_gui, bg = nord.nord4_gui },
-    SneakScope = { bg = nord.nord1_gui },
-
-    
-    -- Cmp
-    CmpItemKind =           { fg = nord.nord15_gui },
-    CmpItemAbbrMatch =      { fg = nord.nord5_gui, style = 'bold' },
-    CmpItemAbbrMatchFuzzy = { fg = nord.nord5_gui, style = 'bold' },
-    CmpItemAbbr =           { fg = nord.nord4_gui},
-    CmpItemMenu =           { fg = nord.nord14_gui },
-    
-    -- Indent Blankline
-    IndentBlanklineChar =        { fg = nord.nord3_gui },
-    IndentBlanklineContextChar = { fg = nord.nord10_gui },
-
-    -- Illuminate
-    illuminatedWord =    { bg = nord.nord3_gui },
-    illuminatedCurWord = { bg = nord.nord3_gui },
-
-    -- nvim-dap
-    DapBreakpoint = { fg = nord.nord14_gui},
-    DapStopped =    { fg = nord.nord15_gui},
-
-    -- Hop
-    HopNextKey =   { fg = nord.nord4_gui, style = 'bold' },
-    HopNextKey1 =  { fg = nord.nord8_gui, style = 'bold' },
-    HopNextKey2 =  { fg = nord.nord4_gui},
-    HopUnmatched = { fg = nord.nord3_gui },
-
-    -- Fern
-    FernBranchText = { fg = nord.nord3_gui_bright},
-
-    -- nvim-ts-rainbow
-    rainbowcol1 = { fg = nord.nord15_gui },
-    rainbowcol2 = { fg = nord.nord13_gui },
-    rainbowcol3 = { fg = nord.nord11_gui },
-    rainbowcol4 = { fg = nord.nord7_gui },
-    rainbowcol5 = { fg = nord.nord8_gui },
-    rainbowcol6 = { fg = nord.nord15_gui },
-    rainbowcol7 = { fg = nord.nord13_gui },
-
-    -- lightspeed
-    LightspeedLabel =                  { fg = nord.nord8_gui, style = "bold" },
-    LightspeedLabelOverlapped =        { fg = nord.nord8_gui, style = "bold,underline" },
-    LightspeedLabelDistant =           { fg = nord.nord15_gui, style = "bold" },
-    LightspeedLabelDistantOverlapped = { fg = nord.nord15_gui, style = "bold,underline" },
-    LightspeedShortcut =               { fg = nord.nord10_gui, style = "bold" },
-    LightspeedShortcutOverlapped =     { fg = nord.nord10_gui, style = "bold,underline" },
-    LightspeedMaskedChar =             { fg = nord.nord4_gui, bg = nord.nord2_gui, style = "bold" },
-    LightspeedGreyWash =               { fg = nord.nord3_gui_bright },
-    LightspeedUnlabeledMatch =         { fg = nord.nord4_gui, bg = nord.nord1_gui },
-    LightspeedOneCharMatch =           { fg = nord.nord8_gui, style = "bold,reverse" },
-    LightspeedUniqueChar =             { style = "bold,underline" },
-
-
-    -- copilot
-    CopilotLabel = { fg = nord.nord3_gui, bg = nord.none },
-
-    -- Statusline
-    StatusLineDull = { fg = nord.nord3_gui, bg = nord.nord1_gui }, 
-    StatusLineAccent = { fg = nord.none, bg = nord.nord13_gui }, 
-    
-
-  }
-  -- Options:
-
-  -- Disable nvim-tree background
-  if vim.g.nord_disable_background then
-    plugins.NvimTreeNormal = { fg = nord.nord4_gui, bg = nord.none }
-  else
-    plugins.NvimTreeNormal = { fg = nord.nord4_gui, bg = nord.sidebar }
-  end
-
-  if vim.g.nord_enable_sidebar_background then
-    plugins.NvimTreeNormal = { fg = nord.nord4_gui, bg = nord.sidebar }
-  else
-    plugins.NvimTreeNormal = { fg = nord.nord4_gui, bg = nord.none }
-  end
-
-  return plugins
-
+       -- Plugins highlight groups
+
+       local plugins = {
+
+               -- LspTrouble
+               LspTroubleText = { fg = nord.nord4_gui },
+               LspTroubleCount = { fg = nord.nord9_gui, bg = nord.nord10_gui },
+               LspTroubleNormal = { fg = nord.nord4_gui, bg = nord.sidebar },
+
+               -- Diff
+               diffAdded = { fg = nord.nord14_gui },
+               diffRemoved = { fg = nord.nord11_gui },
+               diffChanged = { fg = nord.nord15_gui },
+               diffOldFile = { fg = nord.yelow },
+               diffNewFile = { fg = nord.nord12_gui },
+               diffFile = { fg = nord.nord7_gui },
+               diffLine = { fg = nord.nord3_gui },
+               diffIndexLine = { fg = nord.nord9_gui },
+
+               -- Neogit
+               NeogitBranch = { fg = nord.nord10_gui },
+               NeogitRemote = { fg = nord.nord9_gui },
+               NeogitHunkHeader = { fg = nord.nord8_gui },
+               NeogitHunkHeaderHighlight = { fg = nord.nord8_gui, bg = nord.nord1_gui },
+               NeogitDiffContextHighlight = { bg = nord.nord1_gui },
+               NeogitDiffDeleteHighlight = { fg = nord.nord11_gui, style = "reverse" },
+               NeogitDiffAddHighlight = { fg = nord.nord14_gui, style = "reverse" },
+
+               -- GitGutter
+               GitGutterAdd = { fg = nord.nord14_gui }, -- diff mode: Added line |diff.txt|
+               GitGutterChange = { fg = nord.nord15_gui }, -- diff mode: Changed line |diff.txt|
+               GitGutterDelete = { fg = nord.nord11_gui }, -- diff mode: Deleted line |diff.txt|
+
+               -- GitSigns
+               GitSignsAdd = { fg = nord.nord14_gui }, -- diff mode: Added line |diff.txt|
+               GitSignsAddNr = { fg = nord.nord14_gui }, -- diff mode: Added line |diff.txt|
+               GitSignsAddLn = { fg = nord.nord14_gui }, -- diff mode: Added line |diff.txt|
+               GitSignsChange = { fg = nord.nord15_gui }, -- diff mode: Changed line |diff.txt|
+               GitSignsChangeNr = { fg = nord.nord15_gui }, -- diff mode: Changed line |diff.txt|
+               GitSignsChangeLn = { fg = nord.nord15_gui }, -- diff mode: Changed line |diff.txt|
+               GitSignsDelete = { fg = nord.nord11_gui }, -- diff mode: Deleted line |diff.txt|
+               GitSignsDeleteNr = { fg = nord.nord11_gui }, -- diff mode: Deleted line |diff.txt|
+               GitSignsDeleteLn = { fg = nord.nord11_gui }, -- diff mode: Deleted line |diff.txt|
+
+               -- Telescope
+               TelescopePromptBorder = { fg = nord.nord8_gui },
+               TelescopeResultsBorder = { fg = nord.nord9_gui },
+               TelescopePreviewBorder = { fg = nord.nord14_gui },
+               TelescopeSelectionCaret = { fg = nord.nord9_gui },
+               TelescopeSelection = { fg = nord.nord9_gui },
+               TelescopeMatching = { fg = nord.nord8_gui },
+
+               -- NvimTree
+               NvimTreeRootFolder = { fg = nord.nord7_gui, style = "bold" },
+               NvimTreeGitDirty = { fg = nord.nord15_gui },
+               NvimTreeGitNew = { fg = nord.nord14_gui },
+               NvimTreeImageFile = { fg = nord.nord15_gui },
+               NvimTreeExecFile = { fg = nord.nord14_gui },
+               NvimTreeSpecialFile = { fg = nord.nord9_gui, style = "underline" },
+               NvimTreeFolderName = { fg = nord.nord10_gui },
+               NvimTreeEmptyFolderName = { fg = nord.nord1_gui },
+               NvimTreeFolderIcon = { fg = nord.nord4_gui },
+               NvimTreeIndentMarker = { fg = nord.nord1_gui },
+               LspDiagnosticsError = { fg = nord.nord11_gui },
+               LspDiagnosticsWarning = { fg = nord.nord15_gui },
+               LspDiagnosticsInformation = { fg = nord.nord10_gui },
+               LspDiagnosticsHint = { fg = nord.nord9_gui },
+
+               -- WhichKey
+               WhichKey = { fg = nord.nord4_gui, style = "bold" },
+               WhichKeyGroup = { fg = nord.nord4_gui },
+               WhichKeyDesc = { fg = nord.nord7_gui, style = "italic" },
+               WhichKeySeperator = { fg = nord.nord4_gui },
+               WhichKeyFloating = { bg = nord.float },
+               WhichKeyFloat = { bg = nord.float },
+
+               -- LspSaga
+               DiagnosticError = { fg = nord.nord11_gui },
+               DiagnosticWarning = { fg = nord.nord15_gui },
+               DiagnosticInformation = { fg = nord.nord10_gui },
+               DiagnosticHint = { fg = nord.nord9_gui },
+               DiagnosticTruncateLine = { fg = nord.nord4_gui },
+               LspFloatWinNormal = { bg = nord.nord2_gui },
+               LspFloatWinBorder = { fg = nord.nord9_gui },
+               LspSagaBorderTitle = { fg = nord.nord8_gui },
+               LspSagaHoverBorder = { fg = nord.nord10_gui },
+               LspSagaRenameBorder = { fg = nord.nord14_gui },
+               LspSagaDefPreviewBorder = { fg = nord.nord14_gui },
+               LspSagaCodeActionBorder = { fg = nord.nord7_gui },
+               LspSagaFinderSelection = { fg = nord.nord14_gui },
+               LspSagaCodeActionTitle = { fg = nord.nord10_gui },
+               LspSagaCodeActionContent = { fg = nord.nord9_gui },
+               LspSagaSignatureHelpBorder = { fg = nord.nord13_gui },
+               ReferencesCount = { fg = nord.nord9_gui },
+               DefinitionCount = { fg = nord.nord9_gui },
+               DefinitionIcon = { fg = nord.nord7_gui },
+               ReferencesIcon = { fg = nord.nord7_gui },
+               TargetWord = { fg = nord.nord8_gui },
+
+               -- Sneak
+               Sneak = { fg = nord.nord0_gui, bg = nord.nord4_gui },
+               SneakScope = { bg = nord.nord1_gui },
+
+               -- Cmp
+               CmpItemKind = { fg = nord.nord15_gui },
+               CmpItemAbbrMatch = { fg = nord.nord5_gui, style = "bold" },
+               CmpItemAbbrMatchFuzzy = { fg = nord.nord5_gui, style = "bold" },
+               CmpItemAbbr = { fg = nord.nord4_gui },
+               CmpItemMenu = { fg = nord.nord14_gui },
+
+               -- Indent Blankline
+               IndentBlanklineChar = { fg = nord.nord3_gui },
+               IndentBlanklineContextChar = { fg = nord.nord10_gui },
+
+               -- Illuminate
+               illuminatedWord = { bg = nord.nord3_gui },
+               illuminatedCurWord = { bg = nord.nord3_gui },
+
+               -- nvim-dap
+               DapBreakpoint = { fg = nord.nord14_gui },
+               DapStopped = { fg = nord.nord15_gui },
+
+               -- Hop
+               HopNextKey = { fg = nord.nord4_gui, style = "bold" },
+               HopNextKey1 = { fg = nord.nord8_gui, style = "bold" },
+               HopNextKey2 = { fg = nord.nord4_gui },
+               HopUnmatched = { fg = nord.nord3_gui },
+
+               -- Fern
+               FernBranchText = { fg = nord.nord3_gui_bright },
+
+               -- nvim-ts-rainbow
+               rainbowcol1 = { fg = nord.nord15_gui },
+               rainbowcol2 = { fg = nord.nord13_gui },
+               rainbowcol3 = { fg = nord.nord11_gui },
+               rainbowcol4 = { fg = nord.nord7_gui },
+               rainbowcol5 = { fg = nord.nord8_gui },
+               rainbowcol6 = { fg = nord.nord15_gui },
+               rainbowcol7 = { fg = nord.nord13_gui },
+
+               -- lightspeed
+               LightspeedLabel = { fg = nord.nord8_gui, style = "bold" },
+               LightspeedLabelOverlapped = { fg = nord.nord8_gui, style = "bold,underline" },
+               LightspeedLabelDistant = { fg = nord.nord15_gui, style = "bold" },
+               LightspeedLabelDistantOverlapped = { fg = nord.nord15_gui, style = "bold,underline" },
+               LightspeedShortcut = { fg = nord.nord10_gui, style = "bold" },
+               LightspeedShortcutOverlapped = { fg = nord.nord10_gui, style = "bold,underline" },
+               LightspeedMaskedChar = { fg = nord.nord4_gui, bg = nord.nord2_gui, style = "bold" },
+               LightspeedGreyWash = { fg = nord.nord3_gui_bright },
+               LightspeedUnlabeledMatch = { fg = nord.nord4_gui, bg = nord.nord1_gui },
+               LightspeedOneCharMatch = { fg = nord.nord8_gui, style = "bold,reverse" },
+               LightspeedUniqueChar = { style = "bold,underline" },
+
+               -- copilot
+               CopilotLabel = { fg = nord.nord3_gui, bg = nord.none },
+
+               -- Statusline
+               StatusLineDull = { fg = nord.nord3_gui, bg = nord.nord1_gui },
+               StatusLineAccent = { fg = nord.nord0_gui, bg = nord.nord13_gui },
+       }
+       -- Options:
+
+       -- Disable nvim-tree background
+       if vim.g.nord_disable_background then
+               plugins.NvimTreeNormal = { fg = nord.nord4_gui, bg = nord.none }
+       else
+               plugins.NvimTreeNormal = { fg = nord.nord4_gui, bg = nord.sidebar }
+       end
+
+       if vim.g.nord_enable_sidebar_background then
+               plugins.NvimTreeNormal = { fg = nord.nord4_gui, bg = nord.sidebar }
+       else
+               plugins.NvimTreeNormal = { fg = nord.nord4_gui, bg = nord.none }
+       end
+
+       return plugins
 end
 
 return theme
index 7b858fcd4587b4b37fd7b95dc9a30e3d613d1af3..45e64b143439813f6d3566c646bcfbb726dcc84a 100644 (file)
@@ -1,87 +1,91 @@
 local util = {}
-local nord = require('nord.theme')
+local nord = require("nord.theme")
 
 -- Go trough the table and highlight the group with the color values
-util.highlight = function (group, color)
-  local style = color.style and "gui=" .. color.style or "gui=NONE"
-  local fg = color.fg and "guifg=" .. color.fg or "guifg=NONE"
-  local bg = color.bg and "guibg=" .. color.bg or "guibg=NONE"
-  local sp = color.sp and "guisp=" .. color.sp or ""
-
-  local hl = "highlight " .. group .. " " .. style .. " " .. fg .. " " .. bg .. " " .. sp
-
-  vim.cmd(hl)
-  if color.link then vim.cmd("highlight! link " .. group .. " " .. color.link) end
+util.highlight = function(group, color)
+       local style = color.style and "gui=" .. color.style or "gui=NONE"
+       local fg = color.fg and "guifg=" .. color.fg or "guifg=NONE"
+       local bg = color.bg and "guibg=" .. color.bg or "guibg=NONE"
+       local sp = color.sp and "guisp=" .. color.sp or ""
+
+       local hl = "highlight " .. group .. " " .. style .. " " .. fg .. " " .. bg .. " " .. sp
+
+       vim.cmd(hl)
+       if color.link then
+               vim.cmd("highlight! link " .. group .. " " .. color.link)
+       end
 end
 
 -- Only define nord if it's the active colorscheme
 function util.onColorScheme()
-  if vim.g.colors_name ~= "nord" then
-    vim.cmd [[autocmd! nord]]
-    vim.cmd [[augroup! nord]]
-  end
+       if vim.g.colors_name ~= "nord" then
+               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 nord]]
-  vim.cmd [[  autocmd!]]
-  vim.cmd [[  autocmd ColorScheme * lua require("nord.util").onColorScheme()]]
-  vim.cmd [[  autocmd TermOpen * setlocal winhighlight=Normal:NormalFloat,SignColumn:NormalFloat]]
-  vim.cmd [[  autocmd FileType packer setlocal winhighlight=Normal:NormalFloat,SignColumn:NormalFloat]]
-  vim.cmd [[  autocmd FileType qf setlocal winhighlight=Normal:NormalFloat,SignColumn:NormalFloat]]
-  vim.cmd [[augroup end]]
+util.contrast = function()
+       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]])
+       vim.cmd([[  autocmd FileType packer setlocal winhighlight=Normal:NormalFloat,SignColumn:NormalFloat]])
+       vim.cmd([[  autocmd FileType qf setlocal winhighlight=Normal:NormalFloat,SignColumn:NormalFloat]])
+       vim.cmd([[augroup end]])
 end
 
 -- Load the theme
 function util.load()
-  -- Set the theme environment
-  vim.cmd("hi clear")
-  if vim.fn.exists("syntax_on") then vim.cmd("syntax reset") end
-  -- vim.o.background = "dark"
-  vim.o.termguicolors = true
-  vim.g.colors_name = "nord"
-
-  -- load the most importaint parts of the theme
-  local editor = nord.loadEditor()
-  local syntax = nord.loadSyntax()
-  local treesitter = nord.loadTreeSitter()
-
-  -- load editor highlights
-  for group, colors in pairs(editor) do
-    util.highlight(group, colors)
-  end
-
-  -- load syntax highlights
-  for group, colors in pairs(syntax) do
-    util.highlight(group, colors)
-  end
-
-  -- loop trough the treesitter table and highlight every member
-  for group, colors in pairs(treesitter) do
-    util.highlight(group, colors)
-  end
-
-  nord.loadTerminal()
-
-  -- imort tables for plugins and lsp
-  local plugins = nord.loadPlugins()
-  local lsp = nord.loadLSP()
-
-  -- loop trough the plugins table and highlight every member
-  for group, colors in pairs(plugins) do
-    util.highlight(group, colors)
-  end
-
-  -- loop trough the lsp table and highlight every member
-  for group, colors in pairs(lsp) do
-    util.highlight(group, colors)
-  end
-
-  -- if contrast is enabled, apply it to sidebars and floating windows
-  if vim.g.nord_contrast == true then
-    util.contrast()
-  end
+       -- Set the theme environment
+       vim.cmd("hi clear")
+       if vim.fn.exists("syntax_on") then
+               vim.cmd("syntax reset")
+       end
+       -- vim.o.background = "dark"
+       vim.o.termguicolors = true
+       vim.g.colors_name = "nord"
+
+       -- load the most importaint parts of the theme
+       local editor = nord.loadEditor()
+       local syntax = nord.loadSyntax()
+       local treesitter = nord.loadTreeSitter()
+
+       -- load editor highlights
+       for group, colors in pairs(editor) do
+               util.highlight(group, colors)
+       end
+
+       -- load syntax highlights
+       for group, colors in pairs(syntax) do
+               util.highlight(group, colors)
+       end
+
+       -- loop trough the treesitter table and highlight every member
+       for group, colors in pairs(treesitter) do
+               util.highlight(group, colors)
+       end
+
+       nord.loadTerminal()
+
+       -- imort tables for plugins and lsp
+       local plugins = nord.loadPlugins()
+       local lsp = nord.loadLSP()
+
+       -- loop trough the plugins table and highlight every member
+       for group, colors in pairs(plugins) do
+               util.highlight(group, colors)
+       end
+
+       -- loop trough the lsp table and highlight every member
+       for group, colors in pairs(lsp) do
+               util.highlight(group, colors)
+       end
+
+       -- if contrast is enabled, apply it to sidebars and floating windows
+       if vim.g.nord_contrast == true then
+               util.contrast()
+       end
 end
 
 return util