diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-07 17:15:10 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-07 18:36:02 +0200 |
| commit | f2c4081c9251e6f688c206bb90c8f646daaa640c (patch) | |
| tree | ef5f5c70d38d0ad21135f784904c670462a17641 /.config/nvim/after/ftplugin/markdown.lua | |
| parent | a8e96131b873729c40644c34fc7ac060aa50168c (diff) | |
| download | dotfiles-f2c4081c9251e6f688c206bb90c8f646daaa640c.tar.gz dotfiles-f2c4081c9251e6f688c206bb90c8f646daaa640c.zip | |
feat(nvim): add markdown rendering with `render-markdown.nvim`
See https://github.com/MeanderingProgrammer/render-markdown.nvim
- Don't set `'colorcolumn'` and `'conceallevel'` in markdown ftplugin
- Treesitter plugin doesn't install the markdown and markdown_inline
parsers. `50-markdown.lua` does it instead, so that it is
self-contained. It also installs extra parsers it needs: yaml, html
and latex.
- Remove markdown highlight adjustments in `50-colors.lua`
- Remove `markdown/injections.scm` that was disabling treesitter
highlighting inside fenced code blocks.
Diffstat (limited to '.config/nvim/after/ftplugin/markdown.lua')
| -rw-r--r-- | .config/nvim/after/ftplugin/markdown.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/.config/nvim/after/ftplugin/markdown.lua b/.config/nvim/after/ftplugin/markdown.lua index 755b9aa..d0513b6 100644 --- a/.config/nvim/after/ftplugin/markdown.lua +++ b/.config/nvim/after/ftplugin/markdown.lua @@ -63,12 +63,9 @@ vim.opt_local.signcolumn = "auto" vim.opt_local.foldcolumn = "0" -- vim.opt_local.textwidth = 120 -- gw wraps at this value -vim.opt_local.colorcolumn = "+1" -- Highlight one column after 'textwidth' vim.opt_local.foldlevel = 1 -- Replace concealed text with a character from `'listchars'` -- With `'foldmethod'` set to `expr` and `'foldlevel'` set to 2 fenced code blocks are concealed and completely invisible --- I guess that's a TODO for later, find a way to use `'conceallevel'` = 2 but with folded fenced code blocks visible -vim.opt_local.conceallevel = 1 vim.opt_local.complete = { "o", -- 'omnifunc' ".", -- current buffer |
