The delta colour scheme is unusable and has a syntax error
评估
调研方向
首先使用提供的 repro.lua 复现 delta theme,然后检查 delta 的颜色配置和 syntax.red 定义。验证修改后的颜色是否易读,以及打开 git diff 时不再因 syntax.red 错误而失败。
由索引模型根据 Issue 内容生成。
描述
Checklist
- I have searched through the AstroNvim documentation
- I have searched through the existing issues of this project
- I have searched the existing issues of plugins related to this issue
- I can replicate the bug with the minimal
repro.luaprovided below
Neovim version (nvim -v)
irrelevant
Operating system/version
irrelevant
Terminal/GUI
irrelevant
Describe the bug
the given delta config is pretty much unusable extremely bright red and green and you cant read anything.
also syntax.red throws an error and delta doesnt even open (using git diff).
I had to use claude code to change every single value for it to be manageable
Steps to Reproduce
just setup delta theme and use it
Expected behavior
actual usable colours
Screenshots
No response
Additional Context
No response
Minimal configuration
-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
-- stylua: ignore
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
-- install plugins
local plugins = {
{ "AstroNvim/AstroNvim", import = "astronvim.plugins" },
{ "AstroNvim/astrocommunity" },
-- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
-- add anything else here (autocommands, vim.filetype, etc.)
- 主要语言
- Lua
- 星标
- 165
- 派生
- 20
- 平均合并
- 10 小时 5 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AstroNvim/astrotheme 的其他 Issue
-
WIP
难度 4/5 3-5 天 新手友好度 25/100
AstroNvim/astrotheme#78 · 3 条评论 · 1 个 reaction ·
查看 AstroNvim/astrotheme 的全部 Issue
相似的 Issue
-
luaebpf: the by-example page's intro names two outcomes of a lowering and omits the stop with the default verdict可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭documentation severity: low
难度 1/5 1 小时以内 新手友好度 88/100
luainkernel/lunatik#2231 ·
维护者通常 1 天内回复
-
v3: Lua m.setvar() returns -1 on errors, so the script gets stack garbage可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭3.x bug
难度 2/5 1-3 小时 新手友好度 72/100
owasp-modsecurity/ModSecurity#3731 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
good first issue redis-compat
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
LSP: Invalid buffer id in previous_result_ids during workspace/diagnostic/refresh可能已有人在做 @sharky720 于 1 天前认领。 未关闭diagnostic lsp
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复