git clone https://github.com/all3n/dot-nvim.git ~/.config/nvim cd ~/.config/nvim # for osx cp configs/config-osx.template.json config.json # for ubuntu cp configs/config-ubuntu.template.json config.json - leader -> space
- default copy from ./configs/config.template.json
- edit config.json for your customized behavior
- init.lua
- lua/options.lua
- lua/plugins.lua
- everforest
- lua/plugins/alpha.lua
- welcome page definition
- lua/plugins/nvim-cmp.lua
- lsp complations support
- lua/plugins/nvim-treesitter.lua
- lsp syntax
- lua/plugins/which_key.lua
- quick key support
| keymap | description | mode |
|---|---|---|
| leader + ; | dashboard | n |
| leader + space | toggle line/multi comment | n/v |
| leader + c | close buf | n |
| leader + bo | close others buffer | n |
| leader + w | save | n |
| leader + lf | format file by lsp | n |
| leader + la | lsp actions(useful) | n |
| leader + lc | lsp change env,py | n |
| leader + li | show lsp info | n |
| leader + lI | show mason info | n |
| leader + e | toggle nvim-tree | n |
| leader + g | git actions | n |
| leader + d | debug actions | n |
| leader + to | toggle symbol outline | n |
| leader + th | toggle header/source for c/c++ | n |
| leader + hw | hop jump by word | n |
| S-h,S-l | buffer previous/next(useful) | n |
| c+w h,j,k,l | windows jump | n |
| c+ h,j,k,l | windows jump(useful) | n |
| ctrl + \ | toggle float terminal | n |
| leader + rr | run file | n |
| leader + ra | run by args | n |
| leader + st | search text | n |
| leader + sf | search file | n |
| leader + sr | search recent file | n |
| leader + mt | toggle markdown preview(md) | n |
| K | show document, press K again cursor into document | n |
- snippets dir
cp ~/.config/nvim/configs/config-ubuntu.template.json ~/.config/nvim/config.json bash ~/.config/nvim/bin/setup.sh sudo apt-get install openjdk-17-jdk default jdk is openjdk21 old jdk download from https://www.azul.com/downloads/?package=jdk#zulu
brew install openjdk brew install openjdk@17 - use musl libc for avoid glibc not support
- curl -L https://sh.distant.dev | sh -s -- --distant-host 'x86_64-unknown-linux-musl'
mkdir -p ~/.local/bin curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-apple-darwin.gz | gzip -d > ~/.local/bin/cs chmod +x ~/.local/bin/cs