summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/render-markdown.lua
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-04-24 11:36:39 +0300
committerKyren223 <Kyren223@proton.me>2025-04-24 11:36:39 +0300
commit6bef8f32b19778fdfe52f0eb39719425508dcc7b (patch)
treef293141ed7e8676b76bb06c07a0fa9472b10e2ac /.config/nvim/lua/plugins/render-markdown.lua
parentdbd9a6fdd0c44e26b200fb706aacd120a2e09c47 (diff)
Refactored nvim config to make it easier and less insanely nested
Diffstat (limited to '.config/nvim/lua/plugins/render-markdown.lua')
-rw-r--r--.config/nvim/lua/plugins/render-markdown.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/render-markdown.lua b/.config/nvim/lua/plugins/render-markdown.lua
new file mode 100644
index 0000000..a7ae2b7
--- /dev/null
+++ b/.config/nvim/lua/plugins/render-markdown.lua
@@ -0,0 +1,16 @@
+return {
+ 'MeanderingProgrammer/render-markdown.nvim',
+ event = { 'BufReadPre', 'BufNewFile' },
+ keys = {
+ { '<leader>mt', '<<cmd>RenderMarkdown toggle<cr>'}
+ },
+ opts = {
+ render_modes = true,
+ sign = { enabled = false },
+ bullet = { icons = { '', '◆' } },
+ checkbox = {
+ unchecked = { icon = ' ' },
+ checked = { icon = ' ' },
+ },
+ },
+}