Add markdown rendering to Neovim with render-markdown.nvim
- Add render-markdown plugin for in-buffer markdown preview - Add <leader>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 <noreply@anthropic.com>
This commit is contained in:
parent
50a6a217e2
commit
2295aa9131
2 changed files with 15 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin
|
||||||
- **Git Integration**: vim-fugitive for git operations
|
- **Git Integration**: vim-fugitive for git operations
|
||||||
- **Status Line**: lualine with gruvbox theme and relative paths
|
- **Status Line**: lualine with gruvbox theme and relative paths
|
||||||
- **System Clipboard**: Seamless integration for copy/paste
|
- **System Clipboard**: Seamless integration for copy/paste
|
||||||
|
- **Markdown Rendering**: render-markdown.nvim for beautiful in-buffer markdown preview
|
||||||
|
|
||||||
#### Keybindings:
|
#### Keybindings:
|
||||||
|
|
||||||
|
|
@ -63,6 +64,7 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin
|
||||||
| `<Space>gd` | Normal | Git diff |
|
| `<Space>gd` | Normal | Git diff |
|
||||||
| `<Space>gc` | Normal | Git commit |
|
| `<Space>gc` | Normal | Git commit |
|
||||||
| `<Space>gp` | Normal | Git push |
|
| `<Space>gp` | Normal | Git push |
|
||||||
|
| `<Space>md` | Normal | Toggle markdown rendering |
|
||||||
|
|
||||||
### 🖥️ Tmux
|
### 🖥️ Tmux
|
||||||
|
|
||||||
|
|
|
||||||
13
nvim.nix
13
nvim.nix
|
|
@ -81,6 +81,11 @@
|
||||||
web-devicons = {
|
web-devicons = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Markdown rendering
|
||||||
|
render-markdown = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Extra plugins that don't have dedicated modules
|
# Extra plugins that don't have dedicated modules
|
||||||
|
|
@ -171,6 +176,14 @@
|
||||||
action = ":Git push<CR>";
|
action = ":Git push<CR>";
|
||||||
options = { desc = "Git push"; };
|
options = { desc = "Git push"; };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Markdown rendering
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>md";
|
||||||
|
action = ":RenderMarkdown toggle<CR>";
|
||||||
|
options = { desc = "Toggle markdown rendering"; };
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
# Additional Lua configuration for plugins that need custom setup
|
# Additional Lua configuration for plugins that need custom setup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue