-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Please help style headlines in markdown #37
Comments
Just don't include the default values in your config, then you won't get any errors. |
Thank you. Using valid hex color works, and I got familiar with the syntax. I stripped the code down to what's below. I also tried to read the different It still displays
lua << EOF
vim.cmd [[highlight Headline1 guibg=#2C6E00 guifg=#58DB01 gui=italic]]
vim.cmd [[highlight Headline2 guibg=#C8DB01 guifg=#2C6E00 gui=italic]]
--
vim.cmd [[highlight CodeBlock guibg=#07230E guifg=lightyellow]]
--
vim.cmd [[highlight Quote guifg=#0099EC]]
--
-- vim.cmd [[highlight Dash guibg=#58DB01]]
-- vim.cmd [[highlight Dash guifg=#58DB01 gui=bold]]
require("headlines").setup {
markdown = {
headline_highlights = {
"Headline1",
"Headline2"
},
fat_headlines = false,
fat_headline_upper_string = "▃",
--
codeblock_highlight = "CodeBlock",
--
quote_highlight = "Quote",
-- quote_string = "┃",
quote_string = ">> ",
--
dash_highlight = "Dash",
dash_string = "_",
},
}
EOF
|
The icons are not from this plugin. They are from https://github.com/akinsho/org-bullets.nvim |
Hi everybody,
I just stumbled upon this plugin; since I use markdown a bunch, I wanted to integrate it in my workflow.
This is the
~/.config/nvim/plugin/headlines.vim
file I started with:I used
#F0F
so that any changes would be clearly visible. But it seems like these lines don't make any difference, whether they are there, or not, or commented out.I changed that file to the bare minimum as well
What do I need to change in order to make it look like in the example image? Screenshot
Example Image
I also tried the default config, but it did not work. When I use this, I got some errors; I realized they could be solved by
:TSInstall org
,:TSInstall norg
. I tried added the color modifying block again (see below image). However, after doing this, it looked like thisThis is the file I used for the screenshot above
I like the way the colors are in the example image. Also, I am planning to use this exclusively for markdown (no org, no norg, nothing else); could you please tell me how a minimal configuration would have to look in order to make markdown files look like in the example? This way, I could build on top of it in case I want to change the look.
Thank you in advance for your help :)
The text was updated successfully, but these errors were encountered: