add: darcula custom jsonc hilight @variable

This commit is contained in:
asep.komarudin 2024-07-02 16:31:31 +07:00
parent 4f3feb5c38
commit a72df67e8f
4 changed files with 18 additions and 16 deletions

View file

@ -14,7 +14,7 @@
-- solarized-osaka
-- darcula-dark
-- juliana
pcode.colorscheme = "dracula"
pcode.colorscheme = "darcula-dark"
-- 0 =off 1= on
pcode.transparent_mode = 0

View file

@ -26,14 +26,14 @@ if pcode.active_javascript_config.active then
opts.formatters_by_ft.javascript = { package }
end,
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft = opts.linters_by_ft or {}
require("user.utils.masoncfg").try_install("eslint_d")
opts.linters_by_ft.javascript = { "eslint_d" }
end,
},
-- {
-- "mfussenegger/nvim-lint",
-- opts = function(_, opts)
-- opts.linters_by_ft = opts.linters_by_ft or {}
-- require("user.utils.masoncfg").try_install("eslint_d")
-- opts.linters_by_ft.javascript = { "eslint_d" }
-- end,
-- },
{
"nvim-neotest/neotest",
dependencies = {

View file

@ -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,
})