Skip to content

NeoVim config to turrn your NeoVim into a powerful and beautiful IDE

License

Notifications You must be signed in to change notification settings

SmilingBytes/nvim-config

Repository files navigation

NeoVim Config

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

Pre-requisites:

Semi-optional

  • ripgrep is required for grep searching with Telescope

Install

Linux / macos (UNIX)

  1. Uninstall previous configurations (if any)
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.cache/nvim
  1. Setup NvChad
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
  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.

Post Install

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


Customization


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

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

Uninstall

Uninstalling is as simple as removing the nvim configuration directories.

rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.cache/nvim

License

MIT

Free Software, Yeah!

About

NeoVim config to turrn your NeoVim into a powerful and beautiful IDE

Topics

Resources

License

Stars

Watchers

Forks

Languages