No description
init.lua | ||
LICENSE | ||
README.md |
My AstroNvim config
How to install my config
-
First you have to install AstroNvim
- Backup your previous nvim config
mv ~/.config/nvim ~/.config/nvimbackup
- Clone AstroNvim repository into ~/.config/nvim
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim nvim +PackerSync
-
Clone my config into
~/.config/nvim/user
git clone https://github.com/jiriks74/astronvim_config ~/.config/nvim/user
- Open nvim and run
:PackerSync
nvim +PackerSync
Extra plugins included
- vimspector
- Simple plugin for debugging
- You have to create a file with
Launch
config - see the plugin repository
- vim-pio
- PlatformIO vim plugin
- This is a fork that I modified to work with clangd as this is what is the easiest to setup in AstroNvim
- vimtex
- A plugin for, you guessed it, LaTex
- I have not yet learned LaTex, so I haven't tried this plugin out. Hopefully I'll learn it and try out this plugin soon
- markdown-preview.nvim
- Plugin for live markdown preview in a web browser
- copilot.vim
- Github's copilot plugin for Vim
- To use the plugin you have to login with this command
:Copilot setup
Extra mappings
Shortcut | Vim keybind | Description |
---|---|---|
Space+A | ["<leader>a"] | Alpha Dashboard |
CTRL+E | ["<C-e>"] | Copilot accept |
- Mappings for vimspector (debugging)
Shortcut | Vim keybind | Description |
---|---|---|
Space+d+d | ["<leader>dd"] | Launch |
Space+d+S | ["<leader>dS"] | Stop |
Space+d+c | ["<leader>dc"] | Continue |
Space+d+p | ["<leader>dp"] | Pause |
Space+d+e | ["<leader>de"] | Reset |
Space+d+r | ["<leader>dr"] | Restart |
Space+d+R | ["<leader>dR"] | Run to cursor |
Space+d+C | ["<leader>dC"] | Go to current line |
Space+d+P | ["<leader>dP"] | Move cursor to the program counter in current frame |
Breakpoints | ||
Space+d+b+t | ["<leader>dbt"] | Toggle breakpoint |
Space+d+b+l | ["<leader>dbl"] | List breakpoints |
Space+d+b+c | ["<leader>dbc"] | Clear breakpoints |
Space+d+b+C | ["<leader>dbC"] | Toggle CBreakpoint or LogPoint on current line |
Space+d+b+f | ["<leader>dbf"] | Add a function breakpoint for expression under cursor |
Space+d+b+n | ["<leader>dbn"] | Jump to next breakpoint |
Space+d+b+p | ["<leader>dbp"] | Jump to previous breakpoint |
Step keybinds | ||
Space+d+s+s | ["<leader>dss"] | Step over |
Space+d+s+i | ["<leader>dsi"] | Step into |
Space+d+s+o | ["<leader>dso"] | Step out |
Frame keybinds | ||
Space+d+f+u | ["<leader>dfu"] | Up frame |
Space+d+f+d | ["<leader>dfd"] | Down frame |
There are also some VSCode like keybinds setup by the plugin
- Mappings for markdown preview
Shortcut | Vim keybind | Description |
---|---|---|
Space+m+p | ["<leader>mp"] | Markdown preview |
Space+m+s | ["<leader>ms"] | Markdown preview stop |
Space+m+t | ["<leader>mt"] | Markdown preview toggle |