- Lua 51.2%
- Fennel 46.2%
- Makefile 2%
- Vim Script 0.6%
| fnl | ||
| lua | ||
| plugin | ||
| .editorconfig | ||
| .gitignore | ||
| flsproject.fnl | ||
| Makefile | ||
| README.md | ||
nvim-md
Neovim with a Ph.D in Markdown medicine 💊
Neovim has basic Markdown support. This plugin adds some vim-tuitive quality of life features.
Features
- Lists
oandOretain list context and indention<cr>in insert mode retains list context and (indention)<Tab>indents<S-Tab>unindentsIinserts at the beginning of the list item(and)move between lists items<M-j>and<M-k>moves list items up and down<M-b>or:ToggleList<M-x>or:ToggleDone<M-t>or:ToggleTODO
- Prose
- visual line wrapping
jandkmove by display lines<leader>-jand<leader>-kmoves header sections around
Opinions
linebreaks
nvim-md prefers "long lines" (visual/soft wrapping). While traditional Markdown supports hard newlines... Plain Text, Gemini and Obsidian lean toward "long lines". Also "long lines" are backwards-compatible with the originally intended Markdown-to-HTML behavior around <br/> anyway.
Practically this means you'll want to keep the window you're writing prose in at the width you prefer. (Or perhaps the wrapwidth plugin might suit you). Manual hard breaks are still possible and it doesn't conflict with the intended Markdown behavior.
conceal
Vim is notoriously not that great at this behavior. At the time of writing the only remaining hope for Neovim is anticonceal. Until then it is the opinion of nvim-md that not using conceal is preferred.