Minimal Neovim config with LSP.
Requirements:
- Neovim 0.11+
- Basic utils:
git,make,unzip, C Compiler (gcc) - ripgrep
- Clipboard tool (xclip/xsel/win32yank or other depending on platform)
- A Nerd Font: Provides various symbols/icons
- if you have it, set
vim.g.have_nerd_fontto true
- if you have it, set
- Language Setup:
- If you want to write Typescript, you need
npm - If you want to write Golang, you will need
go - etc.
- If you want to write Typescript, you need
Backup your current nvim folders (if any):
# Linux/Mac
mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak
mv ~/.local/state/nvim ~/.local/state/nvim.bak
mv ~/.cache/nvim ~/.cache/nvim.bak
# Windows
Move-Item $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.bak
Move-Item $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.bakClone the repository:
# Linux/Mac
git clone https://github.com/moonbrooke/simple.nvim.git ~/.config/nvim
# Windows
git clone https://github.com/moonbrooke/simple.nvim.git $env:LOCALAPPDATA\nvim(Optional) Remove the .git folder:
# Linux/Mac
rm -rf ~/.config/nvim/.git
# Windows
Remove-Item $env:LOCALAPPDATA\nvim\.git -Recurse -ForceStart Neovim:
nvim