Open prankousky opened 2 years ago
#F0F
is not a valid hex color in Neovim. You have to type it out, #FF00FF
should work.
When I use this, I got some errors; [...] Also, I am planning to use this exclusively for markdown (no org, no norg, nothing else);
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 :h headlines*
files and believe the answer is "no", but I'll ask anyway: is it possible to get an icon similar to what you have in a headline
/ another headline
etc. on the example image I posted in my initial questin?
It still displays #
/ ##
etc. for me, but I use markdown
, not org
, so perhaps that's why.
~/.config/nvim/plugin/headlines.vim
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 But yes, it's orgmode only
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 :)