diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f6d661c..bbb46e85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -127,4 +127,4 @@ jobs: run: | echo '${{ steps.extract_branch.outputs.branch }}' echo ${{ steps.extract_branch.outputs.branch }} - git clone --single-branch --branch ${{ steps.extract_branch.outputs.branch }} --depth=1 https://github.com/linrongbin16/lin.nvim $env:USERPROFILE\.nvim && cd $env:USERPROFILE\.nvim && pwsh .\install.ps1 + git clone --single-branch --branch ${{ steps.extract_branch.outputs.branch }} --depth=1 https://github.com/linrongbin16/lin.nvim $env:LOCALAPPDATA\nvim && cd $env:LOCALAPPDATA\nvim && pwsh .\install.ps1 diff --git a/README.md b/README.md index f6880406..115d7ea4 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,8 @@ And that's all of it. ![image](https://github.com/linrongbin16/lin.nvim/assets/6496887/bca811b5-8b1a-42c0-9283-c38e75f2f06a) +- Install [7-zip](https://www.7-zip.org/). + - Install [Python 3](https://www.python.org/downloads/) (Note: python 2 is no longer supported). - Install [Node.js](https://nodejs.org/en/download/package-manager). @@ -83,8 +85,8 @@ And that's all of it. Set-ExecutionPolicy RemoteSigned -Scope CurrentUser irm get.scoop.sh | iex - git clone https://github.com/linrongbin16/lin.nvim $env:USERPROFILE\.nvim - cd $env:USERPROFILE\.nvim + git clone https://github.com/linrongbin16/lin.nvim $env:USERPROFILE\AppData\Local\nvim + cd $env:USERPROFILE\AppData\Local\nvim .\install.ps1 ``` diff --git a/docs/install.md b/docs/install.md index fa650542..36dccbc5 100644 --- a/docs/install.md +++ b/docs/install.md @@ -51,6 +51,8 @@ And that's all of it. ![image](https://github.com/linrongbin16/lin.nvim/assets/6496887/bca811b5-8b1a-42c0-9283-c38e75f2f06a) +#### Install [7-zip](https://www.7-zip.org/) + #### Install [Python 3](https://www.python.org/downloads/)
@@ -100,8 +102,8 @@ Run below PowerShell commands: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser irm get.scoop.sh | iex -git clone https://github.com/linrongbin16/lin.nvim $env:USERPROFILE\.nvim -cd $env:USERPROFILE\.nvim +git clone https://github.com/linrongbin16/lin.nvim $env:USERPROFILE\AppData\Local\nvim +cd $env:USERPROFILE\AppData\Local\nvim .\install.ps1 ``` diff --git a/install.ps1 b/install.ps1 index 27991bf5..3f28881f 100644 --- a/install.ps1 +++ b/install.ps1 @@ -1,7 +1,7 @@ # Debug # Set-PSDebug -Trace 1 -$NVIM_HOME = "$env:USERPROFILE\.nvim" +$NVIM_HOME = "$env:LOCALAPPDATA\nvim" # utils @@ -141,9 +141,9 @@ function NerdFontDependency() function NvimConfig() { - Info "install $env:LOCALAPPDATA\nvim\init.lua for neovim on windows" - Backup $env:LOCALAPPDATA\nvim - Start-Process powershell "cmd /c mklink $env:LOCALAPPDATA\nvim $NVIM_HOME /D" -Verb RunAs -Wait + Info "install $env:USERPROFILE\.nvim neovim on windows" + Backup $env:USERPROFILE\.nvim + Start-Process powershell "cmd /c mklink /d $env:USERPROFILE\.nvim $NVIM_HOME" -Verb RunAs -Wait # # nvim-treesitter # $NvimTreesitterHome = "$NVIM_HOME\lua\configs\nvim-treesitter\nvim-treesitter"