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

https://github.com/moyum/nvim

My neovim config
https://github.com/moyum/nvim

config dotfile ide nvim vim web

Last synced: about 2 months ago
JSON representation

My neovim config

Awesome Lists containing this project

README

          

# 🐟 Moyu Neovim Config



## Introduction

Personal Neovim configuration, optimized for web development. Simple, clean, and fast.

> "Moyu" represents the Chinese term "ζ‘Έι±Ό"

- 😎 Default auto session and auto save, instantly return to the last working state
- πŸ’« Out-of-the-box web development environment, with support for tailwindcss
- 🎈 Strive for simplicity, no unnecessary UI components

## Simplicity UI

Moyu simplifies the UI as much as possible, while retaining the necessary information.
- The file navigator is hidden by default.
- Use `fidget.nvim` to display diagnostics at the top right.
- Git commit information is displayed in the status line, not behind the cursor.
- And much more...

![nvim](./images/nvim.png)

## Requirements

- Neovim
- make
- need node.js > 16.0.0 for copilot
- [ripgrep](https://github.com/BurntSushi/ripgrep) for fuzzy search
- [lazygit](https://github.com/jesseduffield/lazygit) for lazygit.nvim

## Install

```
git clone https://github.com/MoYuM/nvim ~/.config/nvim --depth 1 && nvim
```

## UnInstall

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

## Suggested

- JetBrainsMono Nerd Font
- iTerm2

## Mapping

Some custom key mappings you need to pay attention to

| Key | Mapping |
|------|------|
| `Space` | `` |
| `1` | File navigation |
| `=` | Format |
| `Ctrl + ;` | Accept copilot suggestions |
| `3` | find next word under cursor |
| `\\` | resume telescope |
| `` | no highlight |
| `=` | format |
| `a` | Select all |
| `` | Find Commands |
| `t` | toggle terminal float |
| `ca` | code action |
| `rn` | rename |
| `rl` | Restart lsp server |
| `g` | lazygit |
| `f` | Find Files |
| `lg` | Live Grep |
| `o` | Recent files |
| `` | move line down |
| `` | move line up |
| `` | move char left |
| `` | move char right |
| `` (in visual mode) | move block down |
| `` (in visual mode) | move block up |
| `` (in visual mode) | move block left |
| `` (in visual mode) | move block right |
| `` (in terminal mode) | quit term mode |

## Github Copilot
```
:Copilot auth
```