You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
477 B
37 lines
477 B
local M = {}
|
|
|
|
M.path = nil
|
|
|
|
function M:initialize(path)
|
|
self.path = path
|
|
end
|
|
|
|
function M:enter()
|
|
vim.call('plug#begin', self.path)
|
|
end
|
|
|
|
function M:exit()
|
|
vim.call('plug#end')
|
|
end
|
|
|
|
function M:add(name, config)
|
|
if (type(config) == "nil") then
|
|
vim.fn['plug#'](name)
|
|
else
|
|
vim.fn['plug#'](name, config)
|
|
end
|
|
end
|
|
|
|
function M:install()
|
|
-- Bleh, but it works
|
|
vim.cmd(':PlugInstall')
|
|
end
|
|
|
|
function M:hasPendingPackages()
|
|
return false
|
|
end
|
|
|
|
function M:cleanup()
|
|
end
|
|
|
|
return M
|
|
|