LazyVim安装配置

简述

LazyVim 是一个由 lazy.nvim 支持的 Neovim 安装程序,可以方便地定制和扩展您的配置。

✨ Features

  • 🔥 Transform your Neovim into a full-fledged IDE
  • 💤 Easily customize and extend your config with lazy.nvim
  • 🚀 Blazingly fast
  • 🧹 Sane default settings for options, autocmds, and keymaps
  • 📦 Comes with a wealth of plugins pre-configured and ready to use

⚡️ 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)*

  • a C compiler for nvim-treesitter. See here

  • for telescope.nvim (optional)

  • a terminal that support true color and undercurl :

安装

Linux/MacOS

Make a backup of your current Neovim files:

1
2
3
4
5
6
7
# required
mv ~/.config/nvim{,.bak}

# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}

Clone the starter

1
git clone https://github.com/LazyVim/starter ~/.config/nvim

Remove the .git folder, so you can add it to your own repo later

1
rm -rf ~/.config/nvim/.git

Start Neovim!

1
nvim

Refer to the comments in the files on how to customize LazyVim.

Windows

Install the LazyVim Starter with PowerShell

Make a backup of your current Neovim files:

1
2
3
4
5
# required
Move-Item $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.bak

# optional but recommended
Move-Item $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.bak

Clone the starter

1
git clone https://github.com/LazyVim/starter $env:LOCALAPPDATA\nvim

Remove the .git folder, so you can add it to your own repo later

1
Remove-Item $env:LOCALAPPDATA\nvim\.git -Recurse -Force

Start Neovim!

1
nvim

Refer to the comments in the files on how to customize LazyVim.

Linux/MacOS

最后更新于 Oct 25, 2024 16:34 +0800
使用 Hugo 构建
主题 StackJimmy 设计