环境: Windows 10
scoop (optional)
Scoop
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserInvoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
管理员权限下安装
iex "& {$ (irm get.scoop.sh)} -RunAsAdmin"
neovim
安装
wezterm
下载安装
配置:
KevinSilvester/wezterm-config
QianSong1/wezterm-config
配置文件目录:C:\Users\[your user name]\.config\wezterm
主题:
catppuccin
快捷键导出:
echo $ (wezterm show-keys ) >> C:\\Users\\Administrator\\Desktop\\wez_keys.xls
powershell
starship: Releases ·
starship/starship (github.com) 下载安装
安装 posh
Install-Module posh-git -Scope CurrentUser Install-Module oh-my -posh -Scope CurrentUser -RequiredVersion 2.0 .496
修改配置文件
添加以下内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Import-Module posh-git Import-Module oh-my -posh Invoke-Expression (&starship init powershell) Set-PSReadLineOption -PredictionSource History Set-PSReadlineKeyHandler -Key Tab -Function Complete Set-PSReadLineKeyHandler -Key "Ctrl+d" -Function MenuComplete Set-PSReadLineKeyHandler -Key "Ctrl+z" -Function Undo Set-PSReadLineKeyHandler -Key UpArrow -ScriptBlock { [Microsoft.PowerShell.PSConsoleReadLine ]::HistorySearchBackward() [Microsoft.PowerShell.PSConsoleReadLine ]::EndOfLine() }Set-PSReadLineKeyHandler -Key DownArrow -ScriptBlock { [Microsoft.PowerShell.PSConsoleReadLine ]::HistorySearchForward() [Microsoft.PowerShell.PSConsoleReadLine ]::EndOfLine() }
重启终端
Move-Item $env:LOCALAPPDATA \nvim $env:LOCALAPPDATA \nvim.bakMove-Item $env:LOCALAPPDATA \nvim-data $env:LOCALAPPDATA \nvim-data .bak git clone --depth 1 https://github.com/AstroNvim/AstroNvim $env:LOCALAPPDATA \nvim nvim
用户配置文件,Windows
下配置目录为:C:\Users\Administrator\AppData\Local\nvim
:
Managing
User Configuration | AstroNvim Docs
AstroNvim 配置
https://github.com/AstroNvim/astrocommunity
C:\Users\Administrator\AppData\Local\nvim\.gitignore
注释掉 lua/user
C:\Users\Administrator\AppData\Local\nvim\lua\user\plugins\community.lua
添加社区第三方包
C:\Users\Administrator\AppData\Local\nvim\lua\user\init.lua
配置第三方包
return { "AstroNvim/astrocommunity" , { import = "astrocommunity.colorscheme.catppuccin" }, { import = "astrocommunity.utility.noice-nvim" }, { import = "astrocommunity.completion.cmp-cmdline" }, }
开始界面配置
C:\Users\Administrator\AppData\Local\nvim\lua\user\plugins\core.lua
替换opts.section.header.val 字符串即可。
LSP
:LspInstall
需要的安装包。配置都再 user 文件下的 lua
脚本中。