mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-05 02:24:58 +02:00
allow users to set disabled vim builtins (#948)
This commit is contained in:
parent
7f978fd2d3
commit
18209ed558
2 changed files with 22 additions and 22 deletions
|
@ -72,6 +72,27 @@ O = {
|
|||
popup_border = "single",
|
||||
},
|
||||
|
||||
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',
|
||||
},
|
||||
|
||||
plugin = {},
|
||||
|
||||
-- TODO: refactor for tree
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue