Skip to content

Commit 7bcbb19

Browse files
committed
markdown: drop render-markdown signs, wrap at word boundaries
1 parent bbd4831 commit 7bcbb19

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎fnl/core.fnl‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
{:group g
5353
:pattern :make
5454
:command "setlocal iskeyword+=-"})
55+
;; wrap at word boundaries so text doesn't touch the window edge
56+
(vim.api.nvim_create_autocmd :FileType
57+
{:group g
58+
:pattern :markdown
59+
:command "setlocal linebreak breakindent"})
5560
;; <cr> enters command mode everywhere except in quickfix
5661
(vim.api.nvim_create_autocmd :BufEnter
5762
{:group g

‎fnl/mods/ui/render-markdown.fnl‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
(module mods.ui.render-markdown {autoload {render-markdown :render-markdown}})
22

3-
(render-markdown.setup {:file_types [:markdown :Avante]})
3+
(render-markdown.setup {:file_types [:markdown :Avante]
4+
:sign {:enabled false}})

0 commit comments

Comments
 (0)