From 485be0f1d84b6225478dfcb9860a296f548378f4 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Sun, 10 Oct 2021 20:53:32 -0400 Subject: [PATCH] start work on experimental vim-plug wrapper --- init.vim | 2 ++ lua/vimPlug.lua | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 lua/vimPlug.lua diff --git a/init.vim b/init.vim index 502b255..7d51421 100644 --- a/init.vim +++ b/init.vim @@ -1,3 +1,5 @@ +" TODO: start using an init.lua (main blocker is I cbf to switch package +" managers (maybe I can make a wrapper?) call plug#begin('~/.vim/plugged') Plug 'neovim/nvim-lspconfig' Plug 'kyazdani42/nvim-web-devicons' diff --git a/lua/vimPlug.lua b/lua/vimPlug.lua new file mode 100644 index 0000000..9b5f518 --- /dev/null +++ b/lua/vimPlug.lua @@ -0,0 +1,15 @@ +-- Experimental vim-plug wrapper for use in `init.lua`s +local Plug = { + Begin = vim.fn['plug#begin'] + _Plug = vim.fn['plug#'] + End = vim.fn['plug#end'] + include = function(repo, opts){ + if(opts == {}) + then + _Plug(repo) + else + _Plug(repo, opts) + end + } +} +