fix #1168 | make disabling of default plugins in options.lua overridable
This commit is contained in:
parent
56c9b087ea
commit
88bd63d407
|
@ -79,10 +79,14 @@ local default_plugins = {
|
||||||
"zipPlugin",
|
"zipPlugin",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local overridden_opts = config.options.disable_default_plugins
|
||||||
|
default_plugins = vim.tbl_deep_extend("force", default_plugins, overridden_opts or default_plugins)
|
||||||
|
|
||||||
for _, plugin in pairs(default_plugins) do
|
for _, plugin in pairs(default_plugins) do
|
||||||
g["loaded_" .. plugin] = 1
|
g["loaded_" .. plugin] = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- set shada path
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.opt.shadafile = vim.fn.expand "$HOME" .. "/.local/share/nvim/shada/main.shada"
|
vim.opt.shadafile = vim.fn.expand "$HOME" .. "/.local/share/nvim/shada/main.shada"
|
||||||
vim.cmd [[ silent! rsh ]]
|
vim.cmd [[ silent! rsh ]]
|
||||||
|
|
Loading…
Reference in New Issue