diff --git a/config/nvim/init.vim b/config/nvim/init.vim index de530a6..9449069 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -69,7 +69,11 @@ nnoremap es :%s/\s\+$//g " auto install vim-plug if has('nvim') - let vim_plug_path = expand("~/.config/nvim/autoload/plug.vim") + if has('win32') + let vim_plug_path = $LOCALAPPDATA . "/nvim/autoload/plug.vim" + else + let vim_plug_path = expand("~/.config/nvim/autoload/plug.vim") + endif else let vim_plug_path = expand("~/.vim/autoload/plug.vim") endif diff --git a/win/config-yarn.ps1 b/win/config-yarn.ps1 new file mode 100644 index 0000000..11e5dc4 --- /dev/null +++ b/win/config-yarn.ps1 @@ -0,0 +1,10 @@ +yarn config set registry https://registry.npm.taobao.org --global +yarn config set disturl https://npm.taobao.org/dist --global +yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass --global +yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ --global +yarn config set puppeteer_download_host https://npm.taobao.org/mirrors --global +yarn config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver --global +yarn config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver --global +yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs --global +yarn config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium --global +yarn config set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector --global \ No newline at end of file diff --git a/win/setup.ps1 b/win/setup.ps1 index 8e9bd8f..410971a 100644 --- a/win/setup.ps1 +++ b/win/setup.ps1 @@ -10,6 +10,7 @@ $dotfiles=(Get-Item $PSScriptRoot).Parent.FullName New-Item -ItemType SymbolicLink -Target $dotfiles\win\profile.ps1 -Path $profile -Force New-Item -ItemType SymbolicLink -Target $dotfiles\config\mpv\mpv.conf -Path $Env:APPDATA\mpv\mpv.conf -Force New-Item -ItemType SymbolicLink -Target $dotfiles\config\mpv\scripts -Path $Env:APPDATA\mpv\scripts -Force +New-Item -ItemType SymbolicLink -Target $dotfiles\config\nvim -Path $Env:LOCALAPPDATA\nvim -Force Remove-Item -Force -Recurse $Env:APPDATA\pip New-Item -ItemType Directory -Path $Env:APPDATA\pip New-Item -ItemType SymbolicLink -Target $dotfiles\pip\pip.conf -Path $Env:APPDATA\pip\pip.ini -Force