Variations for Headings #273
pkazmier
started this conversation in
Show and tell
Replies: 4 comments 14 replies
|
Hi, thank you for sharing! I hope the tinkering was fun, I've definitely gotten sucked into getting a few plugins to work just the way I want them to haha. Would you able to put the config you used next to the associated screenshot? Just so it's easier for people to copy paste it and get the same result. |
1 reply
|
Thanks a lot for your sharing. This is my variation: ConfigurationI'm using NvChad config. Here are some snippets from my config files that follow the NvChad template.
M.base46 = {
theme = "nord",
local highlight_md_heading = "MyHighlightHeading"
vim.api.nvim_set_hl(0, highlight_md_heading, { bg = "#3e4452", fg = "#81a1c1" })
My_Render_Markdown_Opts = {
render_modes = true, -- enable all modes
heading = {
width = {'full', 'block'},
border = true,
border_virtual = true,
border_prefix = true,
min_width = 40,
sign = false,
icons = {
"█ ",
"██ ",
"███ ",
"████ ",
"█████ ",
"██████ ",
},
backgrounds = { highlight_md_heading },
},
code = {
width = 'block',
left_pad = 2,
right_pad = 2,
sign = false,
left_margin = 2,
position = 'right', -- language indicator position
},
}
return {
{
'MeanderingProgrammer/render-markdown.nvim',
ft = { 'markdown', 'quarto' },
dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite
---@module 'render-markdown'
---@type render.md.UserConfig
opts = My_Render_Markdown_Opts,
}, |
11 replies
|
Hey @pkazmier , thanks for sharing! That's a nice font, is this a nerd font? Which one is this pls? |
2 replies
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I spent more time than I'd like to admit this morning trying different variations for headings, so I thought I'd share some in case others would benefit. Each section has a Details expansion that contains the configuration used for the headings:
Configuration
{ heading = { sign = false, border = true, below = "▔", above = "▁", left_pad = 0, position = "left", icons = { "█ ", "██ ", "███ ", "████ ", "█████ ", "██████ ", }, }, }Configuration
{ heading = { sign = false, border = true, below = "▔", above = "▁", left_pad = 0, position = "left", icons = { "█ ", "██ ", "███ ", "████ ", "█████ ", "██████ ", }, }, }Configuration
{ heading = { sign = false, border = true, below = "▔", above = "▁", left_pad = 0, position = "left", icons = { " ", " ", " ", " ", " ", " ", }, }, }Configuration
{ heading = { sign = false, border = true, width = "block", below = "▔", above = "▁", left_pad = 0, right_pad = 4, position = "left", icons = { "█ ", "██ ", "███ ", "████ ", "█████ ", "██████ ", }, }, }Configuration
{ heading = { sign = false, border = true, width = "block", below = "▔", above = "▁", left_pad = 0, right_pad = 4, position = "left", icons = { "█ ", "██ ", "███ ", "████ ", "█████ ", "██████ ", }, }, }Configuration
{ heading = { sign = false, border = true, width = "block", below = "▔", above = "▁", left_pad = 0, right_pad = 4, position = "left", icons = { " ", " ", " ", " ", " ", " ", }, }, }Configuration
{ heading = { backgrounds = {}, sign = false, border = true, below = "▔", above = "▁", left_pad = 0, position = "left", icons = { "█ ", "██ ", "███ ", "████ ", "█████ ", "██████ ", }, }, }Configuration
{ heading = { backgrounds = {}, sign = false, border = true, below = "▔", above = "▁", left_pad = 0, position = "left", icons = { "█ ", "██ ", "███ ", "████ ", "█████ ", "██████ ", }, }, }Configuration
{ heading = { backgrounds = {}, sign = false, border = true, below = "▔", above = "▁", left_pad = 0, position = "left", icons = { " ", " ", " ", " ", " ", " ", }, }, }All reactions