fix: providers are not disabled

• problem: providers are incorrectly disabled
    • why: providers must be disabled by
           setting their global value to 0,
           unlike default plugins.

    • solution: disable built-in providers by
                setting their values to 0
                instead of 1
This commit is contained in:
McAuley Penney 2022-06-27 08:54:19 -07:00 committed by siduck
parent e52ba32fa3
commit aef0a987cc

View file

@ -74,11 +74,6 @@ local default_plugins = {
"vimballPlugin", "vimballPlugin",
"zip", "zip",
"zipPlugin", "zipPlugin",
"python3_provider",
"python_provider",
"node_provider",
"ruby_provider",
"perl_provider",
"tutor", "tutor",
"rplugin", "rplugin",
"syntax", "syntax",
@ -93,6 +88,18 @@ for _, plugin in pairs(default_plugins) do
g["loaded_" .. plugin] = 1 g["loaded_" .. plugin] = 1
end end
local default_providers = {
"node",
"perl",
"python",
"python3",
"ruby",
}
for _, provider in ipairs(default_providers) do
vim.g["loaded_" .. provider .. "_provider"] = 0
end
-- set shada path -- 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"