mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 21:00:38 +00:00
fix #1168 | make disabling of default plugins in options.lua overridable
This commit is contained in:
parent
56c9b087ea
commit
88bd63d407
1 changed files with 4 additions and 0 deletions
|
@ -79,10 +79,14 @@ local default_plugins = {
|
|||
"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
|
||||
g["loaded_" .. plugin] = 1
|
||||
end
|
||||
|
||||
-- set shada path
|
||||
vim.schedule(function()
|
||||
vim.opt.shadafile = vim.fn.expand "$HOME" .. "/.local/share/nvim/shada/main.shada"
|
||||
vim.cmd [[ silent! rsh ]]
|
||||
|
|
Loading…
Reference in a new issue