-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Improve non-treesitter support #6
Comments
Hi! I came across that markdown files are not exactly covered for some reason. I'll attach screenshot tomorrow. What can I do if I'd like to help improve on this? Best regards |
Any additions are welcome and appreciated. If you have questions on how to add something let us know; as far as what to add, that’s up to you and your judgement 😌 We generally want to avoid non-neutral colours for large blocks of text (eg. markdown paragraphs) but headings, links etc. are all open to be added/changed. |
It would be my first neovim theme contribution. I am interested in working on it. Is there any good resource you'd suggest before starting? I am quite busy so it might take me some time to implement it. |
Sure thing, you should only need to modify To find highlight groups to add, open a markdown file in neovim and do Next, add the group to that ...
htmlTagName = { fg = p.foam },
-- This would be your new line
markdownBold = { fg = p.iris },
DiagnosticHint = { fg = groups.hint },
... Finally, if you want to test locally, update your plugin config to point to your local version of the theme. Using packer: -- use('rose-pine/neovim')
use('~/dev/local-theme') A bit much, so please feel free to reach out with any questions. Hope this helps 😌 |
Wow. I was not expecting this detailed instructions. I really appreciate it! I am sure this puts me on the right track. 😊 |
Hi @mvllow! Tried fidgeting with the markdown highlight groups but for some reason it wont use what I set either on the On the following theme, gruvbox-material, I can see that nvim uses the highlightgroups I would like to set but when I set it, it won't work. Here you can see nvim with rose-pine on the left, just installed vim without config on the right. When I set highlight colors on regular vim like you showed, it works but not on nvim. I am on v0.6.0-dev+518-g1dbbaf89b build. |
Found the issue. For some reason the highlight group in nvim for markdown headers is not markdownH1, instead htmlH1. I'll continue the work. :) |
What is a good way to figure out what highlight groups are I am looking for apart from trying out a bunch, then stumbling upon the ones I am looking for? |
I would take a look at some other themes. For example, tokyonight.nvim has the following: htmlH1 = { fg = c.magenta, style = "bold" },
htmlH2 = { fg = c.blue, style = "bold" },
-- mkdHeading = { fg = c.orange, style = "bold" },
-- mkdCode = { bg = c.terminal_black, fg = c.fg },
mkdCodeDelimiter = { bg = c.terminal_black, fg = c.fg },
mkdCodeStart = { fg = c.teal, style = "bold" },
mkdCodeEnd = { fg = c.teal, style = "bold" },
-- mkdLink = { fg = c.blue, style = "underline" },
markdownHeadingDelimiter = { fg = c.orange, style = "bold" },
markdownCode = { fg = c.teal },
markdownCodeBlock = { fg = c.teal },
markdownH1 = { fg = c.magenta, style = "bold" },
markdownH2 = { fg = c.blue, style = "bold" },
markdownLinkText = { fg = c.blue, style = "underline" }, I think it should be enough to try |
I think I found a cool solution to get highlight group from under the cursor. |
What should I do in order to separate the syntax group of dark/light bg or Regular/Dawn/Night themes? We could separate the highlight groups by rose-pine variant or background light/dark just like the palette in |
That should be handled for you by using Edit: this would be a good time to add your local fork to your plugins: require('packer').startup(function(use)
use({
'~/path/to-your-fork',
config = function()
vim.cmd('colorscheme rose-pine')
end,
})
end If using packer, this may require a |
I appreciate your answer. I see it handles tones but I was thinking it could be nice to use love, rose, I am continuing with the tone shifting approach for now, just wanted to share |
I would say let's stick to same colours for each variant now but I like your idea of having a tailored experience per variant. May revisit in the future – will need to refactor our other syntax themes to match. |
Added markdown highlight groups.
* Added markdown highlights. * enchancement: Improve non-treesitter support(#6) Added markdown highlight groups.
Although treesitter is common amongst neovim users, the native highlight groups should be more consistent.
The text was updated successfully, but these errors were encountered: