mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
add: darcula custom jsonc hilight @variable
This commit is contained in:
parent
4f3feb5c38
commit
a72df67e8f
4 changed files with 18 additions and 16 deletions
|
@ -7,17 +7,19 @@ if (color == "darcula-dark") and true or false then
|
|||
priority = 1000,
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("darcula").setup {
|
||||
require("darcula").setup({
|
||||
colors = {
|
||||
lavender = "#9876AA",
|
||||
},
|
||||
}
|
||||
})
|
||||
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, "@variable.member.sql", { fg = colors.olive_green })
|
||||
-- telescope
|
||||
hi(0, "TelescopePromptBorder", { fg = colors.medium_gray })
|
||||
hi(0, "TelescopeResultsBorder", { fg = colors.medium_gray })
|
||||
|
@ -30,8 +32,8 @@ if (color == "darcula-dark") and true or false then
|
|||
hi(0, "TelescopeResultsDiffDelete", { fg = colors.red })
|
||||
hi(0, "TelescopeResultsDiffChange", { fg = colors.bright_cyan })
|
||||
hi(0, "TelescopeResultsDiffAdd", { fg = colors.olive_green })
|
||||
hi(0, "TelescopePromptNormal", { bg = color.dark, fg = color.grey })
|
||||
hi(0, "TelescopePromptPrefix", { bg = color.dark, fg = color.red })
|
||||
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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue