]>
apps.delaporte.us Git - dotfiles.git/blob - invoke/nvim/tasks.py
53d378cba40978c9546c0cb41b26b6d9d6541ae9
1 from invoke
import task
5 # $env:INVOKE_RUN_SHELL='C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
7 home
= os
.path
.expanduser('~')
9 ps
= r
'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
10 config_dir
= f
"{home}/AppData/Local/nvim"
12 if(platform
.system() == 'Linux'):
14 config_dir
= f
"{home}/.config/nvim"
18 c
.run(f
"ls -al {config_dir}")
19 c
.run(f
"ln -s {home}/dotfiles/files/init.lua {config_dir}/init.lua")
23 c
.run(f
"curl -fLo {config_dir}/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim")
24 c
.run(f
"cd {config_dir}/autoload; tree .")
28 result
= c
.run('Get-Command nvim', shell
=ps
)
29 print(f
"Nvim installed? {result.ok}")
31 print(f
"Config dir is {config_dir}")
32 c
.run(f
"ls {config_dir}", shell
=ps
)