-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: options for overriding on specific filetypes? yaml looks bad #213
Comments
I kind of like this option if we want to put it in the wiki require("github-theme").setup({
theme_style = "dark_default",
overrides = function (c)
-- fix the look of yaml in this color scheme
vim.api.nvim_create_autocmd("FileType", { pattern = { "yaml", "yaml.ansible" }, command = "hi TSField guifg=".. c.green })
return{ }
end
}) since |
Can't you apply Something I do in my own colorscheme. |
@olimorris require('github-theme').setup({
-- ...
overrides = function(c)
return {
-- ...
['@field.yaml'] = { fg = c.red },
}
end,
dev = true,
}) |
@ful1e5 that works well. Thank you 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The treesitter parser for
yaml
sticks the yaml keys atTSField
which is white on this color schemeikatyang/tree-sitter-yaml#28
using the autogroup recommended in the issue I was able to put it at the green used in github-nvim-theme which is closer to what is on the github website
My question is if we can get something more built in to override on filetypes to fix issues like this?
Or maybe better I can make a pull request to add this auto group to fix the color scheme for yaml for this one issue?
Which do you think would be better?
The text was updated successfully, but these errors were encountered: