pojokcodeid.nvim-lazy/lua/custom/plugins/onedarkpro.lua

124 lines
5.1 KiB
Lua
Raw Normal View History

2024-03-11 12:29:09 +07:00
return {
2024-04-21 09:12:19 +07:00
{ "navarasu/onedark.nvim", enabled = false },
{
"olimorris/onedarkpro.nvim",
priority = 1000, -- Ensure it loads first
config = function()
2024-04-21 17:11:13 +07:00
local is_transparent = false
2024-04-21 09:12:19 +07:00
require("onedarkpro").setup({
styles = {
types = "NONE",
methods = "NONE",
numbers = "NONE",
strings = "NONE",
comments = "italic",
2024-04-21 13:28:26 +07:00
-- keywords = "bold,italic",
keywords = "italic",
2024-04-21 09:12:19 +07:00
constants = "NONE",
2024-04-21 13:28:26 +07:00
functions = "NONE",
2024-04-21 09:12:19 +07:00
operators = "NONE",
variables = "NONE",
parameters = "NONE",
conditionals = "italic",
virtual_text = "NONE",
tags = "italic",
},
colors = {
onedark = {
green = "#99c379",
gray = "#8094b4",
red = "#e06c75",
purple = "#c678dd",
yellow = "#e5c07a",
blue = "#61afef",
cyan = "#56b6c2",
bg_statusline = "#282c34",
indentline = "#3b4261",
float_bg = "#282c34",
},
},
2024-04-21 13:28:26 +07:00
filetypes = {
-- javascript = false,
},
2024-04-21 09:12:19 +07:00
options = {
2024-04-23 18:56:29 +07:00
cursorline = true, -- Use cursorline highlighting?
2024-04-21 15:48:23 +07:00
transparency = is_transparent, -- Use a transparent background?
terminal_colors = true, -- Use the theme's colors for Neovim's :terminal?
lualine_transparency = is_transparent, -- Center bar transparency?
highlight_inactive_windows = false, -- When the window is out of focus, change the normal background?
2024-04-21 09:12:19 +07:00
},
highlights = {
-- overide cursor line fill colors
LineNr = { fg = "#49505E" }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
CursorLineNr = { fg = "${blue}" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
CursorLine = { bg = "#333842" },
Cursor = { fg = "${bg}", bg = "${fg}" }, -- character under the cursor
lCursor = { fg = "${bg}", bg = "${fg}" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
CursorIM = { fg = "${bg}", bg = "${fg}" }, -- like Cursor, but used when in IME mode |CursorIM|
CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
-- overide nvimtree folder icon fill color
NvimTreeFolderIcon = { fg = "${gray}" },
-- overide nvimtree text fill color folder opened
NvimTreeOpenedFolderName = { fg = "${blue}" },
-- overide nvimtree text fill color root folder
2024-04-24 08:46:30 +07:00
NvimTreeRootFolder = { fg = "${blue}" },
2024-04-21 09:12:19 +07:00
NvimTreeSpecialFile = { fg = "${orange}" },
NvimTreeWinSeparator = { fg = "#202329" },
NvimTreeIndentMarker = { fg = "#3E4450" },
-- overide indenline fill color
IblIndent = { fg = "#3E4450" },
-- overide cmp cursorline fill color with #333842
PmenuSel = { bg = "#333842" },
illuminatedWord = { bg = "#3b4261" },
illuminatedCurWord = { bg = "#3b4261" },
IlluminatedWordText = { bg = "#3b4261" },
IlluminatedWordRead = { bg = "#3b4261" },
IlluminatedWordWrite = { bg = "#3b4261" },
StatusLine = { fg = "#f8f8f2", bg = is_transparent and "NONE" or "${bg}" },
StatusLineTerm = { fg = "#f8f8f2", bg = "${bg}" },
BufferLineFill = { bg = is_transparent and "NONE" or "${bg}" },
["@string.special.url.html"] = { fg = "${green}" },
["@text.uri.html"] = { fg = "${green}" },
["@tag.javascript"] = { fg = "${red}" },
["@tag.attribute"] = { fg = "${orange}", style = "italic" },
["@constructor.javascript"] = { fg = "${red}" },
2024-04-23 18:56:29 +07:00
-- ["@variable"] = { fg = "${fg}", style = "NONE" }, -- various variable names
2024-04-21 09:12:19 +07:00
["@variable.builtin"] = { fg = "${red}", style = "NONE" },
["@variable.member"] = "${cyan}",
["@variable.parameter"] = "${red}",
2024-04-22 08:55:33 +07:00
-- ["@property.javascript"] = { fg = "${cyan}" }, -- similar to `@field`
["@lsp.type.parameter"] = { fg = "${fg}" },
2024-04-23 18:56:29 +07:00
["@lsp.type.property.lua"] = { fg = "${red}" },
2024-04-25 07:26:16 +07:00
["@lsp.type.variable"] = { fg = "${fg}" },
2024-04-21 09:12:19 +07:00
NvimTreeGitDirty = { fg = "${yellow}" },
Pmenu = { fg = "${fg}", bg = "${bg}" },
PmenuThumb = { bg = "${gray}" }, -- Popup menu: Thumb of the scrollbar.
-- overide lualine fill color with bg color
LualineNormal = { bg = "${bg}" },
-- overide lualine_c fill color with bg color
LualineC = { bg = "${bg}" },
-- overide lualine_x fill color with bg color
LualineX = { bg = "${bg}" },
-- overide which-key fill color with bg color
-- WhichKey = { bg = "${bg}" },
-- -- overide which-key fill color with bg color
-- WhichKeySeperator = { bg = "${bg}" },
-- -- overide which-key fill color with bg color
-- WhichKeyDesc = { fg = "${red}" },
-- -- overide which-key fill color with bg color
-- WhichKeyFloat = { bg = "${bg}" },
WhichKeyFloat = { bg = is_transparent and "NONE" or "${bg}" },
-- -- overide which-key fill color with bg color
-- WhichKeyValue = { bg = "${bg}" },
-- -- overide which-key fill color with bg color
-- WhichKeyBorder = { bg = "${bg}" },
2024-04-21 15:48:23 +07:00
-- Folded = { bg = "NONE", fg = "${fg}" }, -- line used for closed folds
2024-04-21 10:41:45 +07:00
TermCursor = { bg = "${fg}" },
2024-04-22 08:55:33 +07:00
TSRainbowRed = { fg = "${cyan}" },
TSRainbowCyan = { fg = "${red}" },
2024-04-21 09:12:19 +07:00
},
})
end,
},
2024-03-11 12:29:09 +07:00
}