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:
parent
e52ba32fa3
commit
aef0a987cc
1 changed files with 12 additions and 5 deletions
|
@ -74,11 +74,6 @@ local default_plugins = {
|
|||
"vimballPlugin",
|
||||
"zip",
|
||||
"zipPlugin",
|
||||
"python3_provider",
|
||||
"python_provider",
|
||||
"node_provider",
|
||||
"ruby_provider",
|
||||
"perl_provider",
|
||||
"tutor",
|
||||
"rplugin",
|
||||
"syntax",
|
||||
|
@ -93,6 +88,18 @@ for _, plugin in pairs(default_plugins) do
|
|||
g["loaded_" .. plugin] = 1
|
||||
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
|
||||
vim.schedule(function()
|
||||
vim.opt.shadafile = vim.fn.expand "$HOME" .. "/.local/share/nvim/shada/main.shada"
|
||||
|
|
Loading…
Reference in a new issue