summaryrefslogtreecommitdiff
path: root/lua/settings.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-07-17 11:10:50 +0430
committerGitHub <[email protected]>2021-07-17 02:40:50 -0400
commit18209ed558ce9495d27114684f76ccfa486cbbd4 (patch)
tree59b387078dba23ac0ef4091bfb72d76e0b9dc10d /lua/settings.lua
parent7f978fd2d35d415a3daefbd86564ab5b48ecadd7 (diff)
allow users to set disabled vim builtins (#948)
Diffstat (limited to 'lua/settings.lua')
-rw-r--r--lua/settings.lua23
1 files changed, 1 insertions, 22 deletions
diff --git a/lua/settings.lua b/lua/settings.lua
index af7adb77..3ac94476 100644
--- a/lua/settings.lua
+++ b/lua/settings.lua
@@ -28,34 +28,13 @@ end
opt.shortmess:append "c"
-local disabled_built_ins = {
- "netrw",
- "netrwPlugin",
- "netrwSettings",
- "netrwFileHandlers",
- "gzip",
- "zip",
- "zipPlugin",
- "tar",
- "tarPlugin", -- 'man',
- "getscript",
- "getscriptPlugin",
- "vimball",
- "vimballPlugin",
- "2html_plugin",
- "logipat",
- "rrhelper",
- "spellfile_plugin",
- -- 'matchit', 'matchparen', 'shada_plugin',
-}
-
if O.leader_key == " " or O.leader_key == "space" then
vim.g.mapleader = " "
else
vim.g.mapleader = O.leader_key
end
-for _, plugin in pairs(disabled_built_ins) do
+for _, plugin in pairs(O.disabled_built_ins) do
vim.g["loaded_" .. plugin] = 1
end