From 524559d5e09232b995cf4d9a51a7748b2eae0a06 Mon Sep 17 00:00:00 2001 From: Lucas Noki Date: Sat, 14 Dec 2019 04:22:34 +0100 Subject: [PATCH] Add Vim module, Add init for module, Add class for module, Add basic implementation for plugin selection --- modules/vim/__init__.py | 4 ++++ modules/vim/module.py | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 modules/vim/__init__.py create mode 100644 modules/vim/module.py diff --git a/modules/vim/__init__.py b/modules/vim/__init__.py new file mode 100644 index 0000000..7735409 --- /dev/null +++ b/modules/vim/__init__.py @@ -0,0 +1,4 @@ +from .module import module + +def getModule(): + return vimModule() \ No newline at end of file diff --git a/modules/vim/module.py b/modules/vim/module.py new file mode 100644 index 0000000..c6a6375 --- /dev/null +++ b/modules/vim/module.py @@ -0,0 +1,34 @@ +class vimModule: + def __init__(self): + pass + def getCommand(self): + + plugins = [ + ("1. Colorschemes", "Plug 'https://github.com/rafi/awesome-vim-colorschemes.git'"), + ("2. Unix Operations", "Plug 'https://github.com/tpope/vim-eunuch.git'"), + ("3. Emmet", "Plug 'https://github.com/mattn/emmet-vim.git'"), + ("4. Meta5 Theme", "Plug 'https://github.com/christophermca/meta5.git'"), + ("5. Nerdtree", "Plug 'https://github.com/scrooloose/nerdtree'"), + ("6. Lightline", "Plug 'https://github.com/itchyny/lightline.vim'") + ] + + print("Verfügbare Plugins:\n") + + for key in plugins: + print(key[0]) + + print("") + + def select_plugins(): + user_input = [int(userInput) for userInput in input("Enter multiple value: ").split()] + clean_plugin_list = set(user_input) + + #print out selected plugins + for element in clean_plugin_list: + selection = element - 1 + try: + print(plugins[selection][0]) + except Exception: + print("Fail") + + select_plugins()