fix(build): make sure `rplugin.vim` is loaded when doing a build. Fixes #382

This commit is contained in:
Folke Lemaitre 2023-01-13 09:19:51 +01:00
parent 0d0d5870a3
commit 666ed7bf73
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ M.build = {
return not (plugin._.dirty and plugin.build) return not (plugin._.dirty and plugin.build)
end, end,
run = function(self) run = function(self)
vim.cmd([[silent! runtime plugin/rplugin.vim]])
Loader.load(self.plugin, { task = "build" }) Loader.load(self.plugin, { task = "build" })
local builders = self.plugin.build local builders = self.plugin.build