Skip to content

Commit 8004461

Browse files
feat: add more default custom icons
## Details User reached out adding wikipedia icon: #307 Added a couple others as well: - gitlab - google - wikipedia Other: updated change log
1 parent ad05586 commit 8004461

File tree

5 files changed

+43
-17
lines changed

5 files changed

+43
-17
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,22 @@
88
[7b1b15f](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/7b1b15fc8891a62aeb3a0f75d0f7b1ec7fb98090)
99
- heading icons function value [#286](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/286)
1010
[bab0663](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/bab0663ecdb06b0ff846969764d6c67719ab0fcb)
11+
[cfe5746](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/cfe57468a4ab44b745eddfbe90b63b9777ba7223)
12+
- override based on `buflisted` [#285](https://github.com/MeanderingProgrammer/render-markdown.nvim/discussions/285)
13+
[873bdee](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/873bdee806e381864a55f692bcbfe23269c8dc9d)
14+
- completions provide space after marker [#292](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/292)
15+
[d7b646f](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/d7b646f2e6136d963e1bd3abbb9e2ac3fa90837a)
1116

1217
### Bug Fixes
1318

1419
- ensure space for table cell padding [#287](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/287)
1520
[786d643](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/786d643ac7a691515d401930b8850f596992725d)
21+
- bullet padding + heading borders [#297](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/297)
22+
[f0eb589](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/f0eb5893556200e9f945c0f0ea3c83bbd20dd963)
23+
- wrap nvim-cmp `register_source` in pcall [#298](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/298)
24+
[be3e3ab](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/be3e3ab807059ddd247a802e8253b0cd3edef5a3)
25+
- check highlighter status when computing concealed regions [#300](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/300)
26+
[ad05586](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/ad055861d17afe058bd835e82292e14a64b51b1d)
1627

1728
## 7.8.0 (2025-01-04)
1829

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -616,12 +616,15 @@ require('render-markdown').setup({
616616
-- 'highlight': Optional highlight for the 'icon', uses fallback highlight if not provided
617617
custom = {
618618
web = { pattern = '^http', icon = '󰖟 ' },
619-
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
619+
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
620620
github = { pattern = 'github%.com', icon = '󰊤 ' },
621+
gitlab = { pattern = 'gitlab%.com', icon = '󰮠 ' },
622+
google = { pattern = 'google%.com', icon = '󰊭 ' },
621623
neovim = { pattern = 'neovim%.io', icon = '' },
622-
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
623-
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
624624
reddit = { pattern = 'reddit%.com', icon = '󰑍 ' },
625+
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
626+
wikipedia = { pattern = 'wikipedia%.org', icon = '󰖬 ' },
627+
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
625628
},
626629
},
627630
sign = {
@@ -1229,12 +1232,15 @@ require('render-markdown').setup({
12291232
-- 'highlight': Optional highlight for the 'icon', uses fallback highlight if not provided
12301233
custom = {
12311234
web = { pattern = '^http', icon = '󰖟 ' },
1232-
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
1235+
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
12331236
github = { pattern = 'github%.com', icon = '󰊤 ' },
1237+
gitlab = { pattern = 'gitlab%.com', icon = '󰮠 ' },
1238+
google = { pattern = 'google%.com', icon = '󰊭 ' },
12341239
neovim = { pattern = 'neovim%.io', icon = '' },
1235-
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
1236-
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
12371240
reddit = { pattern = 'reddit%.com', icon = '󰑍 ' },
1241+
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
1242+
wikipedia = { pattern = 'wikipedia%.org', icon = '󰖬 ' },
1243+
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
12381244
},
12391245
},
12401246
})

doc/render-markdown.txt

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For 0.10.0 Last change: 2025 January 16
1+
*render-markdown.txt* For 0.10.0 Last change: 2025 January 28
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*
@@ -672,12 +672,15 @@ Default Configuration ~
672672
-- 'highlight': Optional highlight for the 'icon', uses fallback highlight if not provided
673673
custom = {
674674
web = { pattern = '^http', icon = '󰖟 ' },
675-
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
675+
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
676676
github = { pattern = 'github%.com', icon = '󰊤 ' },
677+
gitlab = { pattern = 'gitlab%.com', icon = '󰮠 ' },
678+
google = { pattern = 'google%.com', icon = '󰊭 ' },
677679
neovim = { pattern = 'neovim%.io', icon = ' ' },
678-
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
679-
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
680680
reddit = { pattern = 'reddit%.com', icon = '󰑍 ' },
681+
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
682+
wikipedia = { pattern = 'wikipedia%.org', icon = '󰖬 ' },
683+
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
681684
},
682685
},
683686
sign = {
@@ -1265,12 +1268,15 @@ Link Configuration ~
12651268
-- 'highlight': Optional highlight for the 'icon', uses fallback highlight if not provided
12661269
custom = {
12671270
web = { pattern = '^http', icon = '󰖟 ' },
1268-
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
1271+
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
12691272
github = { pattern = 'github%.com', icon = '󰊤 ' },
1273+
gitlab = { pattern = 'gitlab%.com', icon = '󰮠 ' },
1274+
google = { pattern = 'google%.com', icon = '󰊭 ' },
12701275
neovim = { pattern = 'neovim%.io', icon = ' ' },
1271-
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
1272-
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
12731276
reddit = { pattern = 'reddit%.com', icon = '󰑍 ' },
1277+
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
1278+
wikipedia = { pattern = 'wikipedia%.org', icon = '󰖬 ' },
1279+
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
12741280
},
12751281
},
12761282
})

lua/render-markdown/health.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local state = require('render-markdown.state')
55
local M = {}
66

77
---@private
8-
M.version = '7.8.9'
8+
M.version = '7.8.10'
99

1010
function M.check()
1111
M.start('version')

lua/render-markdown/init.lua

+6-3
Original file line numberDiff line numberDiff line change
@@ -714,12 +714,15 @@ M.default_config = {
714714
-- 'highlight': Optional highlight for the 'icon', uses fallback highlight if not provided
715715
custom = {
716716
web = { pattern = '^http', icon = '󰖟 ' },
717-
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
717+
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
718718
github = { pattern = 'github%.com', icon = '󰊤 ' },
719+
gitlab = { pattern = 'gitlab%.com', icon = '󰮠 ' },
720+
google = { pattern = 'google%.com', icon = '󰊭 ' },
719721
neovim = { pattern = 'neovim%.io', icon = '' },
720-
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
721-
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
722722
reddit = { pattern = 'reddit%.com', icon = '󰑍 ' },
723+
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
724+
wikipedia = { pattern = 'wikipedia%.org', icon = '󰖬 ' },
725+
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
723726
},
724727
},
725728
sign = {

0 commit comments

Comments
 (0)