some more fixes

This commit is contained in:
2021-08-19 17:04:46 +02:00
parent 26c99d2e07
commit e763b71ee2
2 changed files with 7 additions and 10 deletions

View File

@ -24,8 +24,8 @@ local function dump(o)
end
function M.has_plugin(pluginName)
local rtp = vim.api.nvim_eval('&rtp')
return rtp:match(pluginName)
local status = pcall(require, pluginName);
return status
end
return M