chore: format source code

This commit is contained in:
github-actions[bot]
2021-09-24 09:30:20 +00:00
committed by siduck76
parent ee586047e5
commit 3d0a0e53f7
4 changed files with 37 additions and 41 deletions

View File

@@ -14,22 +14,22 @@ return packer.startup(function()
-- default_req = run this if 'name' does not exist in `default_config` / `chadrc`
-- if override or default_req start with `(`, then strip that and assume override calls a function, not a whole file
local override_req = function(name, default_req)
local override = require("core.utils").load_config().plugins.default_plugin_config_replace[name]
local result
if override == nil then
result = default_req
else
result = override
end
local override = require("core.utils").load_config().plugins.default_plugin_config_replace[name]
local result
if string.match(result, '^%(') then
result = result:sub(2)
result = result:gsub("%)%.", "').", 1)
return "require('" .. result
else
return "require('" .. result .. "')"
end
if override == nil then
result = default_req
else
result = override
end
if string.match(result, "^%(") then
result = result:sub(2)
result = result:gsub("%)%.", "').", 1)
return "require('" .. result
else
return "require('" .. result .. "')"
end
end
-- this is arranged on the basis of when a plugin starts
@@ -79,7 +79,6 @@ return packer.startup(function()
end,
}
use {
"lukas-reineke/indent-blankline.nvim",
disable = not plugin_status.blankline,