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