Skip to content

MoYuM/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐟 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

Requirements

  • Neovim
  • make
  • need node.js > 16.0.0 for copilot
  • ripgrep for fuzzy search
  • lazygit for lazygit.nvim
  • glow for markdown preview

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 <leader>
1 File navigation
= Format
Ctrl + ; Accept copilot suggestions
3 find next word under cursor
\\ resume telescope
<esc> no highlight
= format
gh lsp finder
gd peek definition
hd hover doc
d] jump to next diagnostics
d[ jump to prev diagnostics
<leader>a Select all
<leader><leader> Find Commands
<leader>t toggle terminal float
<leader>ca code action
<leader>k show line diagnostics
<leader>K show buffer diagnostics
<leader>O show outline
<leader>rn rename
<leader>rl Restart lsp server
<leader>g lazygit
<leader>f Find Files
<leader>lg Live Grep
<leader>o Recent files
<leader>d toggle Devdoc
<C-j> move line down
<C-k> move line up
<C-h> move char left
<C-l> move char right
<C-j> (in visual mode) move block down
<C-k> (in visual mode) move block up
<C-h> (in visual mode) move block left
<C-l> (in visual mode) move block right
<esc><esc> (in terminal mode) quit term mode

Github Copilot

:Copilot auth

Releases

No releases published

Packages

No packages published

Languages