A user configuration template for AstroNvim
now this config can support Coc
or Mason
, you can modify in options.lua
vim.g.lsp_type = "coc" -- use coc as lsp server
vim.g.lsp_type = "lsp" -- use mason as lsp server
mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
Press the "Use this template" button above to create a new repository to store your user configuration.
You can also just clone this repository directly if you do not want to track your user configuration in GitHub.
git clone https://github.com/gongguhit/mynvimconfig
nvim
Action | Mappings |
---|---|
Leader key | Space |
Resize up | Ctrl + Up |
Resize Down | Ctrl + Down |
Resize Left | Ctrl + Left |
Resize Right | Ctrl + Right |
Up Window | Ctrl + k |
Down Window | Ctrl + j |
Left Window | Ctrl + h |
Right Window | Ctrl + l |
Force Write | Ctrl + s |
Force Quit | Ctrl + q |
New File | Leader + n |
Close Buffer | Leader + c |
Next Tab (real vim tab) | ]t |
Previous Tab (real vim tab) | [t |
Comment | Leader + / |
Horizontal Split | \ |
Vertical Split | | |