aboutsummaryrefslogtreecommitdiff
path: root/tools/scripts/neovide-listen.ps1
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-28 23:13:39 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-28 23:13:39 +0800
commit99e2e923d0c77b02f3fb4ff648ea916954868606 (patch)
treeec8e03f6f2cd1ce43990fb4fe6cd631967d0237e /tools/scripts/neovide-listen.ps1
parent1cee979f5d36b311a03cc7397a036ba11caf3d42 (diff)
downloadcrupest-99e2e923d0c77b02f3fb4ff648ea916954868606.tar.gz
crupest-99e2e923d0c77b02f3fb4ff648ea916954868606.tar.bz2
crupest-99e2e923d0c77b02f3fb4ff648ea916954868606.zip
chore(store): move everything to store.
Diffstat (limited to 'tools/scripts/neovide-listen.ps1')
-rw-r--r--tools/scripts/neovide-listen.ps138
1 files changed, 0 insertions, 38 deletions
diff --git a/tools/scripts/neovide-listen.ps1 b/tools/scripts/neovide-listen.ps1
deleted file mode 100644
index e84f3a2..0000000
--- a/tools/scripts/neovide-listen.ps1
+++ /dev/null
@@ -1,38 +0,0 @@
-$env:NVIM_LISTEN_ADDRESS ??= "\\.\pipe\nvimsocket"
-
-$neovide_args = @()
-
-$MY_NEOVIM_PATH="$HOME/codes/neovim/build/bin/nvim.exe"
-if (Get-Item $MY_NEOVIM_PATH -ErrorAction Ignore) {
- Write-Output "Found my neovim at $MY_NEOVIM_PATH."
- $env:VIMRUNTIME="$HOME/codes/neovim/runtime"
- $neovide_args += "--neovim-bin", "$MY_NEOVIM_PATH"
-}
-
-$listen_added = $false
-foreach ($arg in $args) {
- $neovide_args += $arg
- if ( $arg -eq '--') {
- $neovide_args += "--listen", $env:NVIM_LISTEN_ADDRESS
- $listen_added=$true
- }
-}
-
-if (-not $listen_added) {
- $neovide_args += "--", "--listen", $env:NVIM_LISTEN_ADDRESS
-}
-
-$neovide_bin = "neovide"
-$my_neovide_path = "$HOME/codes/neovide/target/release/neovide.exe"
-if (Get-Item $my_neovide_path -ErrorAction Ignore) {
- Write-Output "Found my neovide at $my_neovide_path."
- $neovide_bin = "$my_neovide_path"
-}
-
-if (Get-Command nvr -ErrorAction Ignore) {
- Write-Output "Detected nvr, set git editor env."
- $env:GIT_EDITOR = "nvr -cc split --remote-wait"
-}
-
-Write-Output "Command is $($neovide_args -join ' ')."
-Start-Process $neovide_bin -ArgumentList $neovide_args -Wait