This is a personalized, modern Neovim configuration for C++ and general development, built from the ground up. It features LSP integration, debugging, autocompletion, and a suite of UI enhancements.
This configuration is designed for a Debian/Ubuntu-based system.
-
Clone the repository:
git clone https://github.com/actellim/nvim-config.git ~/.config/nvim -
Run the dependency installation script: This script will install Neovim nightly from source, along with all necessary system dependencies.
~/.config/nvim/install.sh -
Launch Neovim: The first time you launch
nvim, thelazy.nvimplugin manager will automatically install all the configured plugins.
Note: The <leader> key is mapped to <space>.
| Keymap | Description |
|---|---|
Ctrl + o |
Jump back to the previous (older) cursor location. |
Ctrl + i |
Jump forward to the next (newer) cursor location. |
| Keymap | Description |
|---|---|
:sp |
Create a horizontal split. |
:vs |
Create a vertical split. |
Ctrl+w h/j/k/l |
Move to the split in the specified direction. |
Ctrl+w w |
Cycle through all open splits. |
:tabnew |
Create a new tab. |
gt |
Go to the next tab. |
gT |
Go to the previous tab. |
:term |
Open a terminal in a horizontal split. |
| `:vert | term` |
Ctrl+\ Ctrl+n |
Escape from Terminal mode to Normal mode. |
These keymaps are only active in buffers with an attached LSP server.
| Keymap | Description |
|---|---|
gd |
Go to Definition of the symbol under the cursor. |
gi |
Go to Implementation (for interfaces/virtual functions). |
gr |
Go to References (shows all usages). |
gD |
Go to Declaration of the symbol. |
K |
Show hover documentation for the symbol under the cursor. |
<space>rn |
Rename the symbol under the cursor across the project. |
<space>ca |
Show Code Actions for the current line/selection. |
| Keymap | Description |
|---|---|
[d |
Go to the previous diagnostic (error/warning). |
]d |
Go to the next diagnostic. |
<space>e |
Expand the diagnostic message for the current line in a float. |
<space>q |
Show all diagnostics for the current buffer in the quickfix list. |
| Keymap | Description |
|---|---|
<F5> |
Start/Continue the debugging session. |
<F10> |
Step Over the current line. |
<F11> |
Step Into the function on the current line. |
<F12> |
Step Out of the current function. |
<space>b |
Toggle Breakpoint on the current line. |
<space>B |
Set a conditional Breakpoint. |
<space>dr |
Open the Debug REPL. |
<space>dl |
Run the Last debug session again. |
| Command | Description |
|---|---|
:Telescope themes |
Open the theme previewer. |
| Keymap | Description |
|---|---|
<space>dg |
Doxygen: Generate documentation. |
<space>do |
Doxygen: Open documentation in the browser. |