Skip to content

PiyushDuggal-source/neovim

Repository files navigation

A Basic Stable IDE config for Neovim

git clone https://github.com/neovim/neovim.git
cd neovim
git checkout release-0.8
make CMAKE_BUILD_TYPE=Release
sudo make install

⚠️ ⚠️ Run these commands first ⚠️ ⚠️

For Ubuntu

sudo apt update && sudo apt upgrade && sudo apt install git ripgrep xsel wl-clipboard cargo clang-format python3-pip npm
sudo npm install -g neovim && sudo pip install black pynvim && sudo cargo install stylua
For lazygit (Ubuntu)
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
For lazygit (Fedora)
sudo dnf copr enable atim/lazygit -y
sudo dnf install lazygit
Nodejs for specific distros

Make sure to remove or move your current nvim directories: ~/.config/nvim ~/.local/share/nvim

git clone https://github.com/PiyushDuggal-source/neovim ~/.config/nvim

Run nvim and wait for the plugins to be installed

NOTE (You will notice treesitter pulling in a bunch of parsers the next time you open Neovim)

Get health

Open nvim and enter the following:

:checkhealth

check the report and download required packages.

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

NOTE make sure you have node installed, I recommend a node manager like fnm.

Fonts

I recommend using the following repo to get a "Nerd Font" (Font that supports icons)

getnf

Configuration

LSP

To add a new LSP

First Enter:

:LspInstallInfo

and press i on the Language Server you wish to install

Next you will need to add the server to this list: servers

Formatters and linters

Make sure the formatter or linter is installed and add it to this setup function: null-ls

Plugins


If debugging is the process of removing bug, then programming must be the process of putting them in.

- Edsger W. Dijkstra

About

Perfect Neovim config doesn't exists

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages