From 462db776c8dac4da3356c0c94e4c70d087d1c57d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 29 Jul 2021 23:06:24 +0200 Subject: [PATCH] Update windows remote plugin host settings --- symlinks/config/nvim/after/plugin/python_host.vim | 9 +++++++-- symlinks/config/nvim/plugin/ruby_host.vim | 6 +++++- symlinks/vim/after/plugin/python_host.vim | 10 ---------- symlinks/vim/plugin/ruby_host.vim | 8 -------- windows/bootstrap_windows.bat | 1 + 5 files changed, 13 insertions(+), 21 deletions(-) delete mode 100644 symlinks/vim/after/plugin/python_host.vim delete mode 100644 symlinks/vim/plugin/ruby_host.vim diff --git a/symlinks/config/nvim/after/plugin/python_host.vim b/symlinks/config/nvim/after/plugin/python_host.vim index ba22ba7..9a3226f 100644 --- a/symlinks/config/nvim/after/plugin/python_host.vim +++ b/symlinks/config/nvim/after/plugin/python_host.vim @@ -2,5 +2,10 @@ " - Neovim python host - " Explicit declaration of python host program to "prevent suprises" " ----------------------------------------------------------------------------- -let g:python_host_prog = $HOME.'/.asdf/shims/python2' -let g:python3_host_prog = $HOME.'/.asdf/shims/python3' +if !has('win32') + let g:python_host_prog = $HOME.'/.asdf/shims/python2' + let g:python3_host_prog = $HOME.'/.asdf/shims/python3' +else + let g:python_host_prog = $HOME.'/scoop/shims/python2' + let g:python3_host_prog = $HOME.'/scoop/shims/python3' +endif diff --git a/symlinks/config/nvim/plugin/ruby_host.vim b/symlinks/config/nvim/plugin/ruby_host.vim index 2e99f40..9f3507d 100644 --- a/symlinks/config/nvim/plugin/ruby_host.vim +++ b/symlinks/config/nvim/plugin/ruby_host.vim @@ -1,4 +1,8 @@ " ----------------------------------------------------------------------------- " - Neovim ruby host - " ----------------------------------------------------------------------------- -let g:ruby_host_prog = '~/.asdf/shims/ruby' +if !has('win32') + let g:ruby_host_prog = '~/.asdf/shims/ruby' +else + let g:ruby_host_prog = '~/scoop/shims/ruby' +endif diff --git a/symlinks/vim/after/plugin/python_host.vim b/symlinks/vim/after/plugin/python_host.vim deleted file mode 100644 index bc8bfb2..0000000 --- a/symlinks/vim/after/plugin/python_host.vim +++ /dev/null @@ -1,10 +0,0 @@ -" ----------------------------------------------------------------------------- -" - Neovim python host - -" Explicit declaration of python host program to "prevent suprises" -" -" NEOVIM ONLY! -" ----------------------------------------------------------------------------- -if has('nvim') - let g:python_host_prog = $HOME.'/.asdf/shims/python2' - let g:python3_host_prog = $HOME.'/.asdf/shims/python3' -endif diff --git a/symlinks/vim/plugin/ruby_host.vim b/symlinks/vim/plugin/ruby_host.vim deleted file mode 100644 index 06cdeb8..0000000 --- a/symlinks/vim/plugin/ruby_host.vim +++ /dev/null @@ -1,8 +0,0 @@ -" ----------------------------------------------------------------------------- -" - Neovim ruby host - -" -" NEOVIM ONLY! -" ----------------------------------------------------------------------------- -if has('nvim') - let g:ruby_host_prog = '~/.asdf/shims/ruby' -endif diff --git a/windows/bootstrap_windows.bat b/windows/bootstrap_windows.bat index 5b97da2..0fc32fd 100644 --- a/windows/bootstrap_windows.bat +++ b/windows/bootstrap_windows.bat @@ -12,6 +12,7 @@ mklink %UserProfile%\_vimrc %~dp0..\symlinks\vimrc mklink /D %UserProfile%\vimfiles %~dp0..\symlinks\vim mklink %UserProfile%\.gitconfig %~dp0..\symlinks\gitconfig mklink %UserProfile%\.gitignore %~dp0..\symlinks\gitignore +mklink /D %UserProfile%\AppData\Local\nvim %~dp0..\symlinks\config\nvim REM Then set up vim plug Powershell.exe -executionpolicy remotesigned -File %~dp0install_vim_plug_windows.ps1