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