Skip to content

Commit

Permalink
revert(install): switch '~/.nvim' and '~/AppData/Local/nvim' back! (#713
Browse files Browse the repository at this point in the history
)
  • Loading branch information
linrongbin16 authored Feb 22, 2025
1 parent cce01a1 commit 58516b3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:LOCALAPPDATA\nvim && cd $env:LOCALAPPDATA\nvim && pwsh .\install.ps1
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,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\AppData\Local\nvim
cd $env:USERPROFILE\AppData\Local\nvim
git clone https://github.com/linrongbin16/lin.nvim $env:USERPROFILE\.nvim
cd $env:USERPROFILE\.nvim
.\install.ps1
```

Expand Down
4 changes: 2 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,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\AppData\Local\nvim
cd $env:USERPROFILE\AppData\Local\nvim
git clone https://github.com/linrongbin16/lin.nvim $env:USERPROFILE\.nvim
cd $env:USERPROFILE\.nvim
.\install.ps1
```

Expand Down
8 changes: 4 additions & 4 deletions install.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Debug
# Set-PSDebug -Trace 1

$NVIM_HOME = "$env:LOCALAPPDATA\nvim"
$NVIM_HOME = "$env:USERPROFILE\.nvim"

# utils

Expand Down Expand Up @@ -141,9 +141,9 @@ function NerdFontDependency()

function NvimConfig()
{
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
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

# # nvim-treesitter
# $NvimTreesitterHome = "$NVIM_HOME\lua\configs\nvim-treesitter\nvim-treesitter"
Expand Down

0 comments on commit 58516b3

Please sign in to comment.