]> apps.delaporte.us Git - dotfiles.git/blobdiff - invoke/setup-linux/tasks.py
Add Go function for quick ENV bookmarks
[dotfiles.git] / invoke / setup-linux / tasks.py
index 67092e733315dd37a7aa993e5860f026e0ebbac7..067c8115b2c680554b5e59484fc7c51dca02afb6 100644 (file)
@@ -74,3 +74,29 @@ def link_bashrc(c):
 def link_all_for_invoke(c):
     link_to_home(c, 'files/pc/tasks.py')
     link_to_home(c, 'files/pc/bashrc', add_dot=True)
+
+@task
+def vim_nerdtree(c):
+    add_vim_plugin(c, 'https://github.com/preservim/nerdtree.git', 'nerdtree')
+
+@task
+def vim_markdown(c):
+    add_vim_plugin(c, 'https://github.com/preservim/vim-markdown.git', 'markdown')
+ 
+@task
+def vim_airline(c):
+    add_vim_plugin(c, 'https://github.com/vim-airline/vim-airline.git', 'airline')
+
+@task
+def vim_ollama(c):
+    add_vim_plugin(c, 'https://github.com/gergap/vim-ollama.git', 'vim-ollama')
+
+@task
+def add_vim_plugin(c, git_path, folder):
+    c.run(f'mkdir -p {HOME}/.vim/pack/')
+    c.run(f'mkdir -p {HOME}/.vim/pack/vendor')
+    c.run(f'mkdir -p {HOME}/.vim/pack/vendor/opt')
+    c.run(f'git clone --depth 1 {git_path} {HOME}/.vim/pack/vendor/opt/{folder}')
+    c.run(f'ls -l {HOME}/.vim/pack/vendor/opt')
+    print(f"Use `packadd {folder}` in .vimrc to enable")
+