P for Paiman. This is my personal Neovim configuration.
- Neovim >= 0.5
Back up existing Neovim configuration
mv $HOME/.config/nvim $HOME/.config/nvim.BAK
Create folder nvim
mkdir $HOME/.config/nvim
Clone the project and copy to .config
folder
git clone https://github.com/paimanbandi/vim-p.git && cp -r vim-p/.config/nvim $HOME/.config
Install the plugins
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
Activate the plugins
mv $HOME/.config/nvim/init.lua $HOME/.config/nvim/init.lua.BAK && mv $HOME/.config/nvim/init-plugins.lua $HOME/.config/nvim/init.lua
Run your Neovim
nvim
- Docker
To build the Docker image manually: just clone this project, build and run the image.
Clone the project
git clone https://github.com/paimanbandi/vim-p.git
Build the image
docker build -t vim-p .
Run the image
docker run -it --rm -v $(pwd):/usr/src/nvim vim-p [filename/directory]
Create alias for vim-p
alias v="docker run -it --rm -v $(pwd):/usr/src/nvim vim-p"
Example for usage the alias:
v ./
v index.html
docker pull paiman/vim-p
- Mac OS or Linux
If you don't have Neovim or Docker in your machine, or you have them but you want something simple, then you can run this single command:
curl https://raw.githubusercontent.com/paimanbandi/vim-p/master/install.sh | bash
This will install Neovim v0.6.0, backup your current configuration (if you have), and setup the configuration automatically.
- Colorscheme using tentara.nvim
- File manager using nvim-tree.lua
- Syntax checking using syntastic
- Auto-completion using nvim-cmp
- Debugging using nvim-dap
- Statusline using lualine.nvim
- Comment/Uncomment text using kommentary
- Autosaving using AutoSave.nvim
- Rainbow parentheses using rainbow
- Same text selection highlighting using vim-illuminate
- Tabline using barbar.nvim
- Statusline using statusline.lua
- Color code highlighter using nvim-colorizer.lua
- Floating terminal using FTerm
- Smooth scrolling using Neoscroll
- Fuzzy finder using Telescope.nvim
- Git sign indicator using vim-signify
- Git blame using nvim-blame-line
My value of <Leader>
key is <Space>
, if you want to change this key, just go to .config/nvim/lua/settings.lua
and edit the value of mapleader.
g.mapleader = ' '
Mode | Key | Action |
---|---|---|
Normal | Ctrl-n | Open/Close the file manager |
Normal | TAB | Open next file tab |
Normal | Shift-TAB | Open previous file tab |
Normal | Ctrl-q | Quit |
Normal | Ctrl-qx | Force quit |
Normal | Ctrl-x | Quit all |
Normal | Ctrl-xx | Force quit all |
Normal | gcc | Comment/Uncomment code |
Normal | F12 | Open/close floating terminal |
Normal | Leader-dh | Toggle Breakpoint |
Normal | Leader-ff | Find file |
Normal | Leader-fg | Find text |
Normal | Leader-fe | Fold code |
Normal | Leader-nf | Unfold code |
Normal | Leader-nh | Clear Highlight |
Insert | hh / HH | Escape |
Insert | TAB (Auto-completion) | Auto select the first suggestion |
Visual | > | Next indent |
Visual | < | Previous indent |