feat: secure calls + disabled all builtin plugins
This commit is contained in:
@@ -46,16 +46,29 @@ g.mapleader = " "
|
||||
g.auto_save = false
|
||||
|
||||
-- disable builtin vim plugins
|
||||
g.loaded_gzip = 0
|
||||
g.loaded_tar = 0
|
||||
g.loaded_tarPlugin = 0
|
||||
g.loaded_zipPlugin = 0
|
||||
g.loaded_2html_plugin = 0
|
||||
g.loaded_netrw = 0
|
||||
g.loaded_netrwPlugin = 0
|
||||
g.loaded_matchit = 0
|
||||
g.loaded_matchparen = 0
|
||||
g.loaded_spec = 0
|
||||
local disabled_built_ins = {
|
||||
"netrw",
|
||||
"netrwPlugin",
|
||||
"netrwSettings",
|
||||
"netrwFileHandlers",
|
||||
"gzip",
|
||||
"zip",
|
||||
"zipPlugin",
|
||||
"tar",
|
||||
"tarPlugin",
|
||||
"getscript",
|
||||
"getscriptPlugin",
|
||||
"vimball",
|
||||
"vimballPlugin",
|
||||
"2html_plugin",
|
||||
"logipat",
|
||||
"rrhelper",
|
||||
"spellfile_plugin"
|
||||
}
|
||||
|
||||
for _, plugin in pairs(disabled_built_ins) do
|
||||
vim.g["loaded_" .. plugin] = 1
|
||||
end
|
||||
|
||||
local M = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user