An open API service indexing awesome lists of open source software.

https://github.com/khoido2003/.nvim

My beautiful Neovim setup
https://github.com/khoido2003/.nvim

alacritty lua monokai-theme neovim wezterm

Last synced: 8 months ago
JSON representation

My beautiful Neovim setup

Awesome Lists containing this project

README

          

# Neovim Configuration

## How to use this repo (Guide for Window user)
Install
bash
```
git clone https://github.com/khoido2003/.nvim ~/.config/nvim && nvim
```

If using Wezterm terminal, paste the wezterm folder to .config folder
bash
```
C:\Users\\.config
```

If using Alacritty terminal, paste the alacritty folder to
```
C:\Users\\AppData\
```

## Overview

This configuration will make Neonvim become a full-fledged IDE like VS Code

Theme: Monokai NighTasty (https://github.com/polirritmico/monokai-nightasty.nvim)

Mason Support: C/C++, C#, JS/TS, Go, Rust, Java, HTML/CSS, Python,yaml, Dockerfile

## Tools

This Neovim configuration will use LazyVim to manage all Neovim plugins and Mason to control the LSP server

## Prerequesites

- Autoformat code with Conform.nvim: https://github.com/stevearc/conform.nvim

+ To have Conform.nvim auto format for each programming language, on local machine
need to dowload the relevant formatter

+ For example: JS/TS -> Prettier

- LSP server will be dowload automatically by Mason.nvim

### GUI: Neovide

Written in Rust so it is super fast and have some built in features with icon support

Dowload: https://neovide.dev/

### Using built in terminal

I am currently using Wezterm as my terminal and it is amazing, you should try it
out

Recommend dowload FiraCode for better font and syntax support

Dowload: https://github.com/tonsky/FiraCode

### If using Window, dowload Zig as compiler for Nvim-Tree-sitter since C have some problem when compile

Using chocolatey
bash

```
choco install zig
```
or visit Zig website for more guide: https://ziglang.org/learn/getting-started/#direct

### Install Lazygit to use Git in terminal

On Window
bash
```
choco install lazygit
```

![img](images/7.png)

### Add diff to global varibles(Require to use proto format)

Add this to the edit global varible
bash
```
C:\Program Files\Git\usr\bin
```
### LSP for Rust

Step 1: Dowload MinGW-w64 and add it to the global path
Step 2: Configure Rust to use MinGW
bash
```
rustup install stable-x86_64-pc-windows-gnu

rustup default stable-x86_64-pc-windows-gnu

rustc --version --verbose

```

Step 3: Dowload rust-analyzer for the LSP
bash
```
rustup component add rust-analyzer
```

NOTE: Default Rust will use MSVC instead of MinGW-w64 so in order to use that
you have to install Visual Studio Installer and install MSVC from there

### Install buf for proto file format
bash
```
scoop install buf
```

### Win32Yank: Only on Window

This is important to enable copy and paste inside Neovim since it does not support it
Dowload: https://github.com/equalsraf/win32yank/releases

## Requirements

Neovim >= 0.9.0 (needs to be built with LuaJIT)

Git >= 2.19.0 (for partial clones support)

a Nerd Font(v3.0 or greater) (optional, but needed to display some icons)

lazygit (optional)

## Results
![img](images/0.jpg)

![img](images/1.png)

![img](images/2.png)

![img](images/3.png)

![img](images/4.png)

![img](images/5.png)

![img](images/6.png)

![img](images/7.png)