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.
 
 

38 lines
663 B

local M = {}
M.path = nil
function M:initialize(path)
self.path = path
vim.o.runtimepath = vim.o.runtimepath .. "," .. self.path .. "repos/github.com/Shougo/dein.vim/"
end
function M:enter()
vim.call('dein#begin', self.path)
end
function M:exit()
vim.call('dein#end')
end
function M:add(name, config)
if (type(config) == "nil") then
vim.call('dein#add', name)
else
vim.call('dein#add', name, config)
end
end
function M:install()
vim.call('dein#install')
end
function M:hasPendingPackages()
return vim.call('dein#check_install') ~= 0
end
function M:cleanup()
vim.call('map', vim.call('dein#check_clean'), "delete(v:val, 'rf')")
end
return M