Try out my NeoVim config to turn your NeoVim into a powerful and beautiful IDE
IMPORTANT: Please take a backup (if any)
mv ~/.config/nvim ~/.config/nvim.backup
- Neovim 0.7.0 Install NeoVim
- If neovim's very old for your OS then consider trying this neovim version manager
- Use a Nerd Font in your terminal emulator.
- ripgrep is required for grep searching with Telescope
- Uninstall previous configurations (if any)
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.cache/nvim
- Setup NvChad
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
- Setup Custom Config
rm -rf ~/.config/nvim/lua/custom
git clone https://github.com/ismail-h-rana/nvim-config.git ~/.config/nvim/lua/custom --depth 1
cd ~/.config/nvim/lua/custom && nvim
Install/Update LSP & Plugins
:MasonInstallAll
:Lazy
Then press S.
If you're new to NeoVim/Vim
I strongly encourage you to learn how to use NeoVim/Vim, as it's more than a normal text editor.
These are highly recommend and a must do for any new Vimmer.
Vim Tutor:
:Tutor
Get healthy
:checkhealth
You'll probably notice you don't have support for copy/paste also that python and node haven't been setup
So let's fix that
First we'll fix copy/paste
-
On mac
pbcopy
should be builtin -
On Ubuntu
sudo apt install xsel
-
On Arch Linux
sudo pacman -S xsel
Next we need to install python support (node is optional)
- Neovim python support
pip install pynvim
- Neovim node support
npm i -g neovim
Installing LSP for your language
-
Open nvim then run the following command:
:MasonInstallAll
followed by TAB to see your options
Move your cursor to LSP name, then press
i to
install/add
language server,X to
remove
language server,U to
update
all (added) language server
Note: I recommend installing lua
for autocomplete in custom configuration.
Mappings
-
Checkout Keymaps:
:Telescope keymaps
Note: Press Space key to trigger
WhichKey
Themes
- To change default theme:
<leader> + ft
<leader>
is space in our config
Edit Configuration
cd ~/.config/nvim/lua/custom
nvim ~/.config/nvim/lua/custom
Note: Learn How to customize
Update NvChad:
cd ~/.config/nvim
git pull
Update Custom configs:
cd ~/.config/nvim/lua/custom
git pull
Update Plugins:
:Lazy
Move your cursor to plugin name, then press
I to Install or add,
X to Clear or remove,
U to Update,
S to Sync
Uninstalling is as simple as removing the nvim configuration directories.
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.cache/nvim
MIT
Free Software, Yeah!