Skip to content

Commit b55d420

Browse files
committed
feat(migration): add new commenting mappings
1 parent 3070de7 commit b55d420

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/content/docs/configuration/v5_migration.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ Some changes have been made that do not necessarily require any user interventio
231231
- Neovim v0.11 adds a ton of great new features such as `vim.lsp.foldexpr` and context based comment strings. When using Neovim v0.11 we disable a few plugins and just rely on core features
232232
- `Comment.nvim` and `nvim-ts-context-commentstring` are disabled in Neovim v0.11 in favor of the built in commenting features
233233
- `nvim-ufo` is disabled in Neovim v0.11 in favor of the new AstroUI based fold expression. This provides a much clearer implementation of folding rather than relying on the "manual" fold method which can lead to some strange behavior.
234+
- New mappings `gco` and `gcO` for inserting new comments below and above the current line
234235
- New mappings `<Leader>uv` and `<Leader>uV` for toggling diagnostic virtual text and virtual lines (virtual lines are only available in Neovim v0.11 and can replace plugins such as `lsp_lines.nvim`)
235236
- New mapping `gO` for document symbols to align with new core Neovim default LSP mappings
236237
- New mapping `<Leader>uZ` for toggling "Zen mode" for the current buffer which maximizes the buffer, centers the code, and disables most of the "eye candy" such as diagnostics

src/content/docs/mappings.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ AstroNvim generally relies on `<Leader>` driven mappings, which is default set t
2929
| Close Buffer | `Leader + c` |
3030
| Next Tab (real vim tab) | `]t` |
3131
| Previous Tab (real vim tab) | `[t` |
32-
| Comment | `Leader + /` |
3332
| Horizontal Split | `\` |
3433
| Vertical Split | <code>&#124;</code> |
3534

@@ -56,6 +55,14 @@ AstroNvim generally relies on `<Leader>` driven mappings, which is default set t
5655
| Open a buffer tab in a new horizontal split with interactive picker | `Leader + b\` |
5756
| Open a buffer tab in a new vertical split with interactive picker | <code>Leader + b&#124;</code> |
5857

58+
## Commenting Mappings
59+
60+
| Action | Mappings |
61+
| --------------------------------- | ------------ |
62+
| Toggle comment of current line | `Leader + /` |
63+
| Insert comment below current line | `gco` |
64+
| Insert comment above current line | `gcO` |
65+
5966
## List Management
6067

6168
| Action | Mappings |

0 commit comments

Comments
 (0)