mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 01:08:53 +02:00
enc: upgrade v2 to v2.5
This commit is contained in:
parent
68ea712b98
commit
609234c086
443 changed files with 5224 additions and 90746 deletions
62
lua/pcode/plugins/theme/dracula.lua
Normal file
62
lua/pcode/plugins/theme/dracula.lua
Normal file
|
@ -0,0 +1,62 @@
|
|||
return {
|
||||
"Mofiqul/dracula.nvim",
|
||||
priority = 1000,
|
||||
opts=function()
|
||||
local colors = require("dracula").colors()
|
||||
return{
|
||||
colors = {
|
||||
-- purple = "#FCC76A",
|
||||
menu = colors.bg,
|
||||
selection = "#363848",
|
||||
},
|
||||
italic_comment = true,
|
||||
lualine_bg_color = colors.bg,
|
||||
overrides = {
|
||||
Keywords = { fg = colors.cyan, italic = true },
|
||||
["@keyword"] = { fg = colors.pink, italic = true },
|
||||
["@keyword.function"] = { fg = colors.cyan, italic = true },
|
||||
["@function"] = { fg = colors.green, italic = true },
|
||||
["@tag.attribute"] = { fg = colors.green, italic = true },
|
||||
["@tag.builtin.javascript"] = { fg = colors.pink },
|
||||
["@tag.delimiter.javascript"] = { fg = colors.fg },
|
||||
["@type.javascript"] = { fg = colors.fg },
|
||||
["@property.css"] = { fg = colors.cyan },
|
||||
["@type.css"] = { fg = colors.green },
|
||||
["@tag.css"] = { fg = colors.pink },
|
||||
["@keyword.css"] = { fg = colors.fg },
|
||||
["@string.css"] = { fg = colors.pink },
|
||||
NvimTreeFolderIcon = { fg = "#6776a7" },
|
||||
CmpItemAbbr = { fg = "#ABB2BF" },
|
||||
CmpItemKind = { fg = "#ABB2BF" },
|
||||
CmpItemAbbrDeprecated = { fg = "#ABB2BF" },
|
||||
CmpItemAbbrMatch = { fg = "#8BE9FD" },
|
||||
htmlLink = { fg = "#BD93F9", underline = false },
|
||||
Underlined = { fg = "#8BE9FD" },
|
||||
NvimTreeSpecialFile = { fg = "#FF79C6" },
|
||||
SpellBad = { fg = "#FF6E6E" },
|
||||
illuminatedWord = { bg = "#3b4261" },
|
||||
illuminatedCurWord = { bg = "#3b4261" },
|
||||
IlluminatedWordText = { bg = "#3b4261" },
|
||||
IlluminatedWordRead = { bg = "#3b4261" },
|
||||
IlluminatedWordWrite = { bg = "#3b4261" },
|
||||
DiffChange = { fg = colors.fg },
|
||||
StatusLine = { fg = colors.fg, bg = colors.bg },
|
||||
StatusLineTerm = { fg = colors.fg, bg = colors.bg },
|
||||
BufferLineFill = { bg = colors.bg },
|
||||
Pmenu = { fg = colors.fg, bg = colors.bg },
|
||||
LspInfoBorder = { fg = colors.fg },
|
||||
LspReferenceText = { bg = "#3b4261" },
|
||||
LspReferenceRead = { bg = "#3b4261" },
|
||||
LspReferenceWrite = { bg = "#3b4261" },
|
||||
WinBar = { bg = colors.bg },
|
||||
WinBarNC = { fg = colors.fg, bg = colors.bg },
|
||||
},
|
||||
transparent_bg = false,
|
||||
}
|
||||
end,
|
||||
config = function(_,opts)
|
||||
require("dracula").setup(opts)
|
||||
local colorscheme = pcode.themes.dracula or "dracula"
|
||||
vim.cmd("colorscheme " .. colorscheme)
|
||||
end,
|
||||
}
|
49
lua/pcode/plugins/theme/evatheme.lua
Normal file
49
lua/pcode/plugins/theme/evatheme.lua
Normal file
|
@ -0,0 +1,49 @@
|
|||
return {
|
||||
"sharpchen/Eva-Theme.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("Eva-Theme").setup({})
|
||||
local color = {}
|
||||
if pcode.localcode then
|
||||
color = require("Eva-Theme.palette").dark_base.punctuation
|
||||
else
|
||||
color = require("Eva-Theme.palette").dark
|
||||
end
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
local hi = vim.api.nvim_set_hl
|
||||
-- hi(0, "LspInfoBorder", { fg = "#2F3F5C" })
|
||||
-- hi(0, "LspInfoBorder", { fg = "#598DEF" })
|
||||
hi(0, "LspInfoBorder", { fg = "#8A97C3" })
|
||||
-- hi(0, "FloatBorder", { fg = "#2F3F5C" })
|
||||
-- hi(0, "FloatBorder", { fg = "#598DEF" })
|
||||
hi(0, "FloatBorder", { fg = "#8A97C3" })
|
||||
hi(0, "StatusLine", { bg = color.background })
|
||||
hi(0, "StatusLineNC", { bg = color.background })
|
||||
hi(0, "WinBar", { bg = color.background })
|
||||
hi(0, "WinBarNC", { bg = color.background })
|
||||
hi(0, "NormalFloat", { bg = color.background })
|
||||
hi(0, "NormalNC", { bg = color.background })
|
||||
hi(0, "@tag.delimiter.javascript", { fg = "#838FA7" })
|
||||
hi(0, "@tag.delimiter.tsx", { fg = "#838FA7" })
|
||||
-- git
|
||||
hi(0, "NvimTreeGitNewIcon", { bg = color.dark, fg = color.git.added })
|
||||
hi(0, "NvimTreeGitRenamedIcon", { bg = color.dark, fg = color.git.added })
|
||||
hi(0, "NvimTreeGitDeletedIcon", { bg = color.dark, fg = color.git.stagedDeleted })
|
||||
hi(0, "NvimTreeGitDirtyIcon", { bg = color.dark, fg = color.git.diffModified })
|
||||
hi(0, "NvimTreeGitIgnoredIcon", { bg = color.dark, fg = color.git.ignored })
|
||||
hi(0, "NvimTreeGitMergeIcon", { bg = color.dark, fg = color.git.diffModified })
|
||||
hi(0, "NvimTreeGitStagedIcon", { bg = color.dark, fg = color.git.stagedModified })
|
||||
hi(0, "NvimTreeWinSeparator", { bg = color.dark, fg = color.comment })
|
||||
hi(0, "MiniIndentscopeSymbol", { bg = color.dark, fg = color.parameter })
|
||||
-- cursor
|
||||
-- hi(0, "Cursor", { bg = "#838FA7", fg = "#838FA7" })
|
||||
hi(0, "CursorColumn", { bg = color.dark, fg = "#838FA7" })
|
||||
hi(0, "TermCursor", { bg = "#FF9070", fg = color.dark })
|
||||
hi(0, "TermCursorNC", { bg = "#FF9070", fg = color.dark })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
41
lua/pcode/plugins/theme/jetbrains.lua
Normal file
41
lua/pcode/plugins/theme/jetbrains.lua
Normal file
|
@ -0,0 +1,41 @@
|
|||
return {
|
||||
"pojokcodeid/darcula-dark.nvim",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("darcula").setup({
|
||||
colors = {
|
||||
lavender = "#9876AA",
|
||||
statusline = "NONE",
|
||||
},
|
||||
})
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
local colors = require("darcula").colors()
|
||||
local hi = vim.api.nvim_set_hl
|
||||
hi(0, "@property.json", { fg = colors.lavender })
|
||||
hi(0, "@property.jsonc", { fg = colors.lavender })
|
||||
hi(0, "LineNr", { ctermfg = 11, fg = colors._39 })
|
||||
-- hi(0, "@variable.member.sql", { fg = colors.olive_green })
|
||||
-- telescope
|
||||
hi(0, "TelescopePromptBorder", { fg = colors.medium_gray })
|
||||
hi(0, "TelescopeResultsBorder", { fg = colors.medium_gray })
|
||||
hi(0, "TelescopePreviewBorder", { fg = colors.medium_gray })
|
||||
hi(0, "TelescopeSelection", { bg = colors.dark_charcoal_gray })
|
||||
hi(0, "TelescopeMultiSelection", { bg = colors.dark_charcoal_gray })
|
||||
hi(0, "TelescopeNormal", { bg = colors.dark })
|
||||
hi(0, "TelescopeMatching", { fg = colors.olive_green })
|
||||
hi(0, "TelescopePromptPrefix", { fg = colors.red })
|
||||
hi(0, "TelescopeResultsDiffDelete", { fg = colors.red })
|
||||
hi(0, "TelescopeResultsDiffChange", { fg = colors.bright_cyan })
|
||||
hi(0, "TelescopeResultsDiffAdd", { fg = colors.olive_green })
|
||||
hi(0, "TelescopePromptNormal", { bg = colors.dark, fg = colors.grey })
|
||||
hi(0, "TelescopePromptPrefix", { bg = colors.dark, fg = colors.red })
|
||||
hi(0, "TelescopeResultsTitle", { bg = colors.olive_green, fg = colors.very_dark_gray })
|
||||
end,
|
||||
})
|
||||
local colorscheme = pcode.themes.jetbrains or "darcula-dark"
|
||||
vim.cmd("colorscheme " .. colorscheme)
|
||||
end,
|
||||
}
|
124
lua/pcode/plugins/theme/onedarkpro.lua
Normal file
124
lua/pcode/plugins/theme/onedarkpro.lua
Normal file
|
@ -0,0 +1,124 @@
|
|||
return {
|
||||
"olimorris/onedarkpro.nvim",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
local is_transparent = false
|
||||
require("onedarkpro").setup({
|
||||
styles = {
|
||||
types = "NONE",
|
||||
methods = "NONE",
|
||||
numbers = "NONE",
|
||||
strings = "NONE",
|
||||
comments = "italic",
|
||||
keywords = "bold,italic",
|
||||
constants = "NONE",
|
||||
functions = "italic",
|
||||
operators = "NONE",
|
||||
variables = "NONE",
|
||||
parameters = "NONE",
|
||||
conditionals = "italic",
|
||||
virtual_text = "NONE",
|
||||
tags = "italic",
|
||||
},
|
||||
colors = {
|
||||
bg_statusline = "#282c34",
|
||||
onedark = {
|
||||
green = "#99c379",
|
||||
gray = "#8094b4",
|
||||
red = "#e06c75",
|
||||
purple = "#c678dd",
|
||||
yellow = "#e5c07a",
|
||||
blue = "#61afef",
|
||||
cyan = "#56b6c2",
|
||||
indentline = "#3b4261",
|
||||
float_bg = "#282c34",
|
||||
},
|
||||
onedark_dark = {
|
||||
bg_statusline = "#000",
|
||||
},
|
||||
},
|
||||
options = {
|
||||
cursorline = true,
|
||||
transparency = is_transparent,
|
||||
terminal_colors = true,
|
||||
},
|
||||
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
|
||||
NvimTreeRootFolder = { fg = "${yellow}" },
|
||||
NvimTreeSpecialFile = { fg = "${orange}" },
|
||||
NvimTreeWinSeparator = { fg = "#202329" },
|
||||
NvimTreeIndentMarker = { fg = "#3E4450" },
|
||||
-- overide nvimtree cursorline
|
||||
NvimTreeCursorLine = { bg = "#333842" },
|
||||
-- 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}" },
|
||||
["@lsp.type.parameter"] = { fg = "${gray}" },
|
||||
-- ["@text.uri.html"] = { fg = "${green}" },
|
||||
-- ["@tag.javascript"] = { fg = "${red}" },
|
||||
-- ["@tag.attribute"] = { fg = "${orange}", style = "italic" },
|
||||
-- ["@constructor.javascript"] = { fg = "${red}" },
|
||||
-- ["@variable"] = { fg = "${fg}", style = "NONE" }, -- various variable names
|
||||
-- ["@variable.builtin"] = { fg = "${red}", style = "NONE" },
|
||||
-- ["@variable.member"] = "${cyan}",
|
||||
-- ["@variable.parameter"] = "${red}",
|
||||
-- ["@property"] = { fg = "${cyan}" }, -- similar to `@field`
|
||||
["@property.lua"] = { fg = "${red}", bg = "NONE" },
|
||||
["@lsp.type.property.lua"] = { fg = "${cyan}", bg = "NONE" },
|
||||
["@lsp.type.variable.lua"] = { fg = "${red}", bg = "NONE" },
|
||||
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}" },
|
||||
LspInfoBorder = { fg = "${fg}" },
|
||||
NormalFloat = { fg = "${fg}", bg = is_transparent and "NONE" or "${bg}" },
|
||||
Normal = { fg = "${fg}", bg = is_transparent and "NONE" or "${bg}" },
|
||||
NormalNC = { fg = "${fg}", bg = is_transparent and "NONE" or "${bg}" },
|
||||
FloatBorder = { fg = "${fg}", bg = is_transparent and "NONE" or "${bg}" },
|
||||
NonText = { bg = "NONE", fg = "#3E4450" },
|
||||
},
|
||||
})
|
||||
local colorscheme = pcode.themes.onedarkpro or "onedark"
|
||||
vim.cmd("colorscheme " .. colorscheme)
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue