Skip to content

Commit

Permalink
fix(install): switch '~/.nvim' and '~/AppData/Local/nvim' for win11 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Feb 15, 2025
1 parent d5cff95 commit ef84c40
Show file tree
Hide file tree
Showing 4 changed files with 13 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: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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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
```

Expand Down
6 changes: 4 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

<details>
Expand Down Expand Up @@ -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
```

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:USERPROFILE\.nvim"
$NVIM_HOME = "$env:LOCALAPPDATA\nvim"

# utils

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ef84c40

Please sign in to comment.