Skip to content

neovim&lazyvim

安装步骤

首先安装Scoop,这是win下的包管理工具,非常推荐使用

powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

可能需要换源,这里直接开全局代理用官方源,以下步骤均基于全局代理

接着安装neovim

powershell
scoop install neovim

nvim即可运行,然后安装lazyvim的前置准备

powershell
# scoop install git # 这个大部分都有不用重新安装
scoop search neovide # 这个软件包在其他bucket,先搜索一下
scoop bucket add extras # 安装这个bucket
scoop install neovide lazygit gcc ripgrep fd unzip tree-sitter luarocks

下载安装 LazyVim 配置

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

安装一款适合LazyVim显示的字体

powershell
scoop bucket add nerd-fonts # 增加nerd字体bucket
scoop install UbuntuMono-NF

在terminal中设置默认字体或者在配置文件 $env:LOCALAPPDATA\nvim\lua\config\options.lua 中添加下行代码来设置字体

lua
local opt = vim.opt
opt.guifont = "UbuntuMono Nerd Font:h12"

自此安装结束!

鄂ICP备19018246号-1