From aef0a987cca188d046e5f798233306ba9e9159a8 Mon Sep 17 00:00:00 2001 From: McAuley Penney Date: Mon, 27 Jun 2022 08:54:19 -0700 Subject: [PATCH] fix: providers are not disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • 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 --- lua/core/options.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lua/core/options.lua b/lua/core/options.lua index 3b12fec..5a49d26 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -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"