+-- Dracula color scheme
+
vim.api.nvim_command("set background=dark")
vim.g.colors_name = "dracula"
-
-
local colors = {
bg = "#282A36",
fg = "#F8F8F2",
bright_magenta = "#FF92DF",
bright_cyan = "#A4FFFF",
bright_white = "#FFFFFF",
- cursor_line = "#2C2C2C",
- menu = "#282C34",
+ menu = "#21222C",
visual = "#3E4452",
- split = "#181A1F",
gutter_fg = "#4B5263",
nontext = "#3B4048",
white = "#ABB2BF",
- black = "#1e1e1e"
+ black = "#191A21"
}
+vim.g.terminal_color_0 = colors.back
+vim.g.terminal_color_1 = colors.red
+vim.g.terminal_color_2 = colors.green
+vim.g.terminal_color_3 = colors.yellow
+vim.g.terminal_color_4 = colors.purple
+vim.g.terminal_color_5 = colors.pink
+vim.g.terminal_color_6 = colors.cyan
+vim.g.terminal_color_7 = colors.white
+vim.g.terminal_color_8 = colors.selection
+vim.g.terminal_color_9 = colors.bright_red
+vim.g.terminal_color_11 = colors.bright_yellow
+vim.g.terminal_color_12 = colors.bright_blue
+vim.g.terminal_color_13 = colors.bright_magenta
+vim.g.terminal_color_14 = colors.bright_cyan
+vim.g.terminal_color_15 = colors.bright_white
+vim.g.terminal_color_background = colors.bg
+vim.g.terminal_color_foreground = colors.fg
+
local highlight = function(group, fg, bg, attr, sp)
- local fg = fg and "guifg=" .. fg or "guifg=NONE"
- local bg = bg and "guibg=" .. bg or "guibg=NONE"
- local attr = attr and "gui=" ..attr or "gui=NONE"
- local sp = sp and "guisp=" .. sp or ""
+ fg = fg and "guifg=" .. fg or "guifg=NONE"
+ bg = bg and "guibg=" .. bg or "guibg=NONE"
+ attr = attr and "gui=" ..attr or "gui=NONE"
+ sp = sp and "guisp=" .. sp or ""
vim.api.nvim_command("highlight " .. group .. " ".. fg .. " " .. bg .. " ".. attr .. " " .. sp)
end
--- Group Foreground Backgroud Attribute, Special
+-- highlight(Group, Foreground, Backgroud, Attribute, Special)
highlight("Normal", colors.fg, colors.bg, nil, nil)
highlight("Comment", colors.comment, nil, nil, nil)
highlight("Constant", colors.yellow, nil, nil, nil)
highlight("Number", colors.orange, nil, nil, nil)
highlight("Boolean", colors.cyan, nil, nil, nil)
highlight("Float", colors.orange, nil, nil, nil)
+highlight("Operator", colors.purple, nil, nil, nil)
+highlight("Keywords", colors.cyan, nil, nil, nil)
highlight("Identifier", colors.cyan, nil, nil, nil)
highlight("Function", colors.yellow, nil, nil, nil)
highlight("Statement", colors.purple, nil, nil, nil)
highlight("Conditional", colors.pink, nil, nil, nil)
highlight("Repeat", colors.pink, nil, nil, nil)
highlight("Label", colors.cyan, nil, nil, nil)
-highlight("Operator", colors.purple, nil, nil, nil)
-highlight("Keywords", colors.cyan, nil, nil, nil)
highlight("Exception", colors.purple, nil, nil, nil)
highlight("PreProc", colors.yellow, nil, nil, nil)
highlight("Include", colors.purple, nil, nil, nil)
highlight("Error", colors.bright_red, nil, nil, nil)
highlight("Todo", colors.purple, nil, "bold,italic", nil)
highlight("Underlined", colors.cyan, nil, "underline", nil)
+
highlight("Cursor", nil, nil, "reverse", nil)
-highlight("CursorColumn", nil, colors.cursor_line, "reverse", nil)
+highlight("CursorColumn", nil, colors.black, "reverse", nil)
highlight("CursorLineNr", colors.fg, nil, "bold", nil)
highlight("SignColumn", nil, colors.bg, nil, nil)
highlight("Conceal", colors.comment, nil, nil, nil)
-highlight("CursorColumn", nil, colors.cursor_line, nil, nil)
-highlight("CursorLine", nil, colors.cursor_line, nil, nil)
+highlight("CursorColumn", nil, colors.black, nil, nil)
+highlight("CursorLine", nil, colors.selection, nil, nil)
+
+highlight("StatusLine", colors.white, colors.black, nil, nil)
+highlight("StatusLineNC", colors.comment, nil, nil, nil)
+highlight("StatusLineTerm", colors.white, colors.black, nil, nil)
+highlight("StatusLineTermNC", colors.comment, nil, nil, nil)
+
highlight("Directory", colors.cyan, nil, nil, nil)
highlight("DiffAdd", colors.bg, colors.green, nil, nil)
highlight("DiffChange", colors.orange, nil, nil, nil)
highlight("DiffDelete", colors.red, nil, nil, nil)
highlight("DiffText", colors.comment, nil, nil, nil)
+
highlight("ErrorMsg", colors.bright_red, nil, nil, nil)
-highlight("VertSplit", colors.split, nil, nil, nil)
+highlight("VertSplit", colors.black, nil, nil, nil)
highlight("Folded", colors.comment, nil, nil, nil)
highlight("FoldColumn", nil, nil, nil, nil)
-highlight("IncSearch", colors.yellow, colors.comment, nil, nil)
+highlight("Search", colors.black, colors.orange, nil, nil)
+highlight("IncSearch", colors.orange, colors.comment, nil, nil)
highlight("LineNr", colors.comment, nil, nil, nil)
highlight("MatchParen", colors.fg, nil, "underline", nil)
highlight("NonText", colors.nontext, nil, nil, nil)
-highlight("Pmenu", colors.white, nil, nil, nil)
-highlight("PmenuSel", colors.black, colors.cyan, nil, nil)
-highlight("PmenuSbar", nil, colors.nontext, nil, nil)
-highlight("PmenuThumb", nil, colors.white, nil, nil)
+highlight("Pmenu", colors.white, colors.menu, nil, nil)
+highlight("PmenuSel", colors.black, colors.selection, nil, nil)
+highlight("PmenuSbar", nil, colors.bg, nil, nil)
+highlight("PmenuThumb", nil, colors.selection, nil, nil)
+
highlight("Question", colors.purple, nil, nil, nil)
highlight("QuickFixLine", colors.black, colors.yellow, nil, nil)
highlight("SpecialKey", colors.nontext, nil, nil, nil)
+
highlight("SpellBad", colors.bright_red, nil, "underline", nil)
highlight("SpellCap", colors.yellow, nil, nil, nil)
highlight("SpellLocal", colors.yellow, nil, nil, nil)
highlight("SpellRare", colors.yellow, nil, nil, nil)
-highlight("StatusLine", colors.white, colors.cursor_line, nil, nil)
-highlight("StatusLineNC", colors.comment, nil, nil, nil)
-highlight("StatusLineTerm", colors.white, colors.cursor_line, nil, nil)
-highlight("StatusLineTermNC", colors.comment, nil, nil, nil)
+
highlight("TabLine", colors.comment, nil, nil, nil)
highlight("TabLineSel", colors.white, nil, nil, nil)
highlight("TabLineFill", nil, colors.bg, nil, nil)
highlight("VisualNOS", colors.visual, nil, nil, nil)
highlight("WarningMsg", colors.yellow, nil, nil, nil)
highlight("WildMenu", colors.black, colors.white, nil, nil)
-highlight("EndOfBuffer", colors.black, nil, nil, nil)
-
-
+highlight("EndOfBuffer", colors.bg, nil, nil, nil)
+-- TreeSitter
highlight("TSError", colors.bright_red, nil, nil, nil)
highlight("TSPunctDelimiter", colors.fg, nil, nil, nil)
highlight("TSPunctBracket", colors.fg, nil, nil, nil)
highlight("TSVariable", colors.fg, nil, nil, nil)
highlight("TSVariableBuiltin", colors.purple, nil, nil, nil)
-highlight("TSText", "#FFFF00", nil, nil, nil)
-highlight("TSStrong", "#FFFF00", nil, nil, nil)
-highlight("TSEmphasis", "#FFFF00", nil, nil, nil)
-highlight("TSUnderline", "#FFFF00", nil, nil, nil)
-highlight("TSTitle", "#FFFF00", nil, nil, nil)
-highlight("TSLiteral", "#FFFF00", nil, nil, nil)
-highlight("TSURI", "#FFFF00", nil, nil, nil)
+highlight("TSText", "colors.orange", nil, nil, nil)
+highlight("TSStrong", "colors.orange", nil, nil, nil)
+highlight("TSEmphasis", "colors.orange", nil, nil, nil)
+highlight("TSUnderline", "colors.orange", nil, nil, nil)
+highlight("TSTitle", "colors.orange", nil, nil, nil)
+highlight("TSLiteral", "colors.orange", nil, nil, nil)
+highlight("TSURI", "colors.orange", nil, nil, nil)
highlight("TSTag", colors.cyan, nil, nil, nil)
highlight("TSTagDelimiter", colors.white, nil, nil, nil)
-
-- HTML
highlight("htmlArg", colors.yellow, nil, nil, nil)
highlight("htmlBold", colors.yellow, nil, "bold", nil)
highlight("markdownOrderedListMarker", colors.red, nil, nil, nil)
highlight("markdownRule", colors.comment, nil, nil, nil)
-
+-- Diff
highlight("diffAdded", colors.green, nil, nil, nil)
highlight("diffRemoved", colors.red, nil, nil, nil)
highlight("diffFileId", colors.yellow, nil, "bold,reverse", nil)
highlight("diffNewFile", colors.green, nil, nil, nil)
highlight("diffOldFile", colors.red, nil, nil, nil)
-
highlight("debugPc", nil, colors.cyan, nil, nil)
highlight("debugBreakpoint", colors.red, nil, "reverse", nil)
-- Git Signs
-highlight('GitSignsAdd', colors.green, nil, nil, nil)
-highlight('GitSignsChange', colors.yellow, nil, nil, nil)
-highlight('GitSignsDelete', colors.red, nil, nil, nil)
-highlight('GitSignsAddLn', colors.black, colors.green, nil, nil)
-highlight('GitSignsChangeLn', colors.black, colors.yellow, nil, nil)
-highlight('GitSignsDeleteLn', colors.black, colors.red, nil, nil)
+highlight('GitSignsAdd', colors.bright_green, nil, nil, nil)
+highlight('GitSignsChange', colors.cyan, nil, nil, nil)
+highlight('GitSignsDelete', colors.bright_red, nil, nil, nil)
+highlight('GitSignsAddLn', colors.black, colors.bright_green, nil, nil)
+highlight('GitSignsChangeLn', colors.black, colors.cyan, nil, nil)
+highlight('GitSignsDeleteLn', colors.black, colors.bright_red, nil, nil)
-- Nvim compe
vim.api.nvim_command("highlight! link CompeDocumentation Pmenu")
highlight("NvimTreeRootFolder", colors.purple, nil, 'bold', nil)
highlight("NvimTreeNormal ", colors.bright_blue, nil, nil, nil)
highlight("NvimTreeGitDirty", colors.yellow, nil, nil, nil)
-highlight("NvimTreeGitNew", colors.green, nil, nil, nil)
+highlight("NvimTreeGitNew", colors.bright_green, nil, nil, nil)
highlight("NvimTreeImageFile", colors.pink, nil, nil, nil)
highlight("NvimTreeFolderIcon", colors.purple, nil, nil, nil)
highlight("NvimTreeIndentMarker", colors.nontext, nil, nil, nil)
highlight("NvimTreeSpecialFile", colors.pink, nil, 'underline', nil)
-- Bufferline
-highlight("BufferLineIndicatorSelected", colors.cyan , nil, nil, nil)
-highlight("BufferLineFill", nil , colors.cursor_line, nil, nil)
+highlight("BufferLineIndicatorSelected", colors.purple , nil, nil, nil)
+highlight("BufferLineFill", nil , colors.black, nil, nil)
-- LSP
highlight('LspDiagnosticsDefaultError', colors.red, nil, nil, nil)