diff --git a/modules/vim/module.py b/modules/vim/module.py index 4c5c4e4..89bc603 100644 --- a/modules/vim/module.py +++ b/modules/vim/module.py @@ -1,6 +1,7 @@ from AbstractModule import AbstractModule from subprocess import call from PyInquirer import prompt +from pathlib import Path import os import json @@ -45,7 +46,9 @@ class VimModule(AbstractModule): selected_plugins = self.do_plugin_selection() default_settings = self.add_settings() # print out selected plugins + print("\033[4mYour selection:\033[0m") [print(x) for x in selected_plugins] + print("\n\033[4mDefault settings:\033[0m") [print(i) for i in default_settings] # Create vimrc file @@ -79,8 +82,10 @@ class VimModule(AbstractModule): vimrc_file.write(line) # Create necessary folder structure for Plugin Manager - if not os.path.isdir("/home/john/Gitlab/linux-tools/testdirectory/autoload/"): - if os.path.isdir("/home/john/Gitlab/linux-tools/testdirectory/"): + autoload = str(Path.home().joinpath("Gitlab", "linux-tools", "testdirectory", "autoload")) + testdirectory = str(Path.home().joinpath("Gitlab", "linux-tools", "testdirectory")) + if not os.path.isdir(autoload): + if os.path.isdir(testdirectory): install_vimplug = "cd ~/Gitlab/linux-tools/testdirectory/ " \ "&& mkdir autoload " \ "&& cd autoload " \