diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs/version-1.3/installation/installation.md b/i18n/zh-Hans/docusaurus-plugin-content-docs/version-1.3/installation/installation.md index a42fd807..ea1f595a 100644 --- a/i18n/zh-Hans/docusaurus-plugin-content-docs/version-1.3/installation/installation.md +++ b/i18n/zh-Hans/docusaurus-plugin-content-docs/version-1.3/installation/installation.md @@ -6,32 +6,45 @@ sidebar_position: 1 ## 前置条件 -- 请确保拥有最新版本的 [`Neovim v0.8.0+`](https://github.com/neovim/neovim/releases/latest). -- 安装 [`git`](https://cli.github.com/), [`make`](https://www.gnu.org/software/make/), [`pip`](https://pypi.org/project/pip/), [`python`](https://www.python.org/) [`npm`](https://npmjs.com/), [`node`](https://nodejs.org/) and [`cargo`](https://www.rust-lang.org/tools/install) installed on your system. -- [解决全局安装程序包时的EACES权限错误](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally),以避免使用npm安装程序包时出错。 -- [`PowerShell 7+`](https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.2) (Windows系统所需)。 +- 请确保拥有最新版本的 [`Neovim v0.9.0+`](https://github.com/neovim/neovim/releases/latest)。 +- 在您的系统上安装 [`git`](https://cli.github.com/)、[`make`](https://www.gnu.org/software/make/)、[`pip`](https://pypi.org/project/pip/)、[`python`](https://www.python.org/)、[`npm`](https://npmjs.com/)、[`node`](https://nodejs.org/) 和 [`cargo`](https://www.rust-lang.org/tools/install)。 +- [解决全局安装程序包时的 `EACCES` 权限错误](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally),以避免使用 npm 安装程序包时出错。 +- [`PowerShell 7+`](https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.2)(Windows系统所需)。 + +## 可选功能 + +- 安装 [`lazygit`](https://github.com/jesseduffield/lazygit#installation)。使得按下 `gg` 能够在 `lvim` 中启动 `lazygit`,以获得集成和增强的 Git 体验。 ## 稳定版 -(Neovim 0.8.0) +(Neovim 0.9.0) -没有意料之外的错误: +没有警报和意外: import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; - + ```bash -LV_BRANCH='release-1.2/neovim-0.8' bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/fc6873809934917b470bff1b072171879899a36b/utils/installer/install.sh) +LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh) ``` ```powershell -pwsh -c "`$LV_BRANCH='release-1.2/neovim-0.8'; iwr https://raw.githubusercontent.com/LunarVim/LunarVim/fc6873809934917b470bff1b072171879899a36b/utils/installer/install.ps1 -UseBasicParsing | iex" +pwsh -c "`$LV_BRANCH='release-1.3/neovim-0.9'; iwr https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.ps1 -UseBasicParsing | iex" +``` + + + + +_这只是为了查看基本的功能,因此某些交互可能会被环境拦截。_ + +```bash +docker run -w /tmp -it --rm alpine:edge sh -uelic 'addgroup -S lunaruser && adduser -S lunaruser -G lunaruser --shell /bin/sh && apk add yarn git python3 cargo neovim ripgrep alpine-sdk bash --update && LV_BRANCH='release-1.3/neovim-0.9' su -c "bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/release-1.3/neovim-0.9/utils/installer/install.sh)" lunaruser && su -c /home/lunaruser/.local/bin/lvim lunaruser' ``` @@ -39,12 +52,12 @@ pwsh -c "`$LV_BRANCH='release-1.2/neovim-0.8'; iwr https://raw.githubusercontent ## 开发版 -(Neovim 0.9.0) +(Neovim 0.10.0) -拥有全部新功能和新bug: +所有的新功能与新问题: - + ```bash bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh) @@ -57,34 +70,46 @@ bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/ pwsh -c "iwr https://raw.githubusercontent.com/LunarVim/LunarVim/master/utils/installer/install.ps1 -UseBasicParsing | iex" ``` + + + +_这只是为了查看基本的功能,所以部分互动可能会被环境拦截。_ + +```bash +docker run -w /root -it --rm alpine:edge sh -uelic 'apk add git neovim ripgrep alpine-sdk bash --update && bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh) && /root/.local/bin/lvim' +``` + -如遇任何问题,请参考[troubleshooting](../troubleshooting/README.md)部分。 +如遇任何问题,请参考[故障排除](../troubleshooting/README.md)部分。 ## 更新LunarVim -- 进入到LunarVim `:LvimUpdate` + +- 将 LunarVim 更新到当前 LunarVim 分支的最新提交。 +- 在命令行模式中使用 `:LvimUpdate` 命令。 +- 按下 `Lu` 使用 WhichKey。 - 从命令行 `lvim +LvimUpdate +q` -### 更新插件 +### 升级插件 -- 进入到LunarVim `:LvimSyncCorePlugins` +- 进入 LunarVim 内部 `:LvimSyncCorePlugins` ## 卸载 -您可以使用附带的 `uninstall` 脚本卸载LunarVim(包括配置文件)。 +您可以使用附带的 `uninstall` 脚本卸载 LunarVim(包括配置文件)。 - + ```bash bash ~/.local/share/lunarvim/lvim/utils/installer/uninstall.sh ``` -#### **或** +**或者** ```bash bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/uninstall.sh)