From 2295aa9131f159d5b36ed9d5b7755ebc4af28f41 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 26 Jul 2025 21:44:46 +0200 Subject: [PATCH] Add markdown rendering to Neovim with render-markdown.nvim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add render-markdown plugin for in-buffer markdown preview - Add md keybinding to toggle markdown rendering - Update README documentation with markdown rendering features - Uses existing treesitter and web-devicons dependencies 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 2 ++ nvim.nix | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 6c0bc9d..6889214 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin - **Git Integration**: vim-fugitive for git operations - **Status Line**: lualine with gruvbox theme and relative paths - **System Clipboard**: Seamless integration for copy/paste +- **Markdown Rendering**: render-markdown.nvim for beautiful in-buffer markdown preview #### Keybindings: @@ -63,6 +64,7 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin | `gd` | Normal | Git diff | | `gc` | Normal | Git commit | | `gp` | Normal | Git push | +| `md` | Normal | Toggle markdown rendering | ### 🖥️ Tmux diff --git a/nvim.nix b/nvim.nix index 5bd1b45..18fd042 100644 --- a/nvim.nix +++ b/nvim.nix @@ -81,6 +81,11 @@ web-devicons = { enable = true; }; + + # Markdown rendering + render-markdown = { + enable = true; + }; }; # Extra plugins that don't have dedicated modules @@ -171,6 +176,14 @@ action = ":Git push"; options = { desc = "Git push"; }; } + + # Markdown rendering + { + mode = "n"; + key = "md"; + action = ":RenderMarkdown toggle"; + options = { desc = "Toggle markdown rendering"; }; + } ]; # Additional Lua configuration for plugins that need custom setup