Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(install): switch '~/.nvim' and '~/AppData/Local/nvim' for win11 #704

Merged
merged 5 commits into from
Feb 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading