parent
e328b86336
commit
4ca8d781cf
|
@ -67,6 +67,29 @@ M.ui = {
|
||||||
---- PLUGIN OPTIONS ----
|
---- PLUGIN OPTIONS ----
|
||||||
|
|
||||||
M.plugins = {
|
M.plugins = {
|
||||||
|
|
||||||
|
-- builtin nvim plugins are disabled
|
||||||
|
builtins = {
|
||||||
|
"2html_plugin",
|
||||||
|
"getscript",
|
||||||
|
"getscriptPlugin",
|
||||||
|
"gzip",
|
||||||
|
"logipat",
|
||||||
|
"netrw",
|
||||||
|
"netrwPlugin",
|
||||||
|
"netrwSettings",
|
||||||
|
"netrwFileHandlers",
|
||||||
|
"matchit",
|
||||||
|
"tar",
|
||||||
|
"tarPlugin",
|
||||||
|
"rrhelper",
|
||||||
|
"spellfile_plugin",
|
||||||
|
"vimball",
|
||||||
|
"vimballPlugin",
|
||||||
|
"zip",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
|
||||||
-- enable/disable plugins (false for disable)
|
-- enable/disable plugins (false for disable)
|
||||||
status = {
|
status = {
|
||||||
blankline = true, -- indentline stuff
|
blankline = true, -- indentline stuff
|
||||||
|
|
|
@ -48,26 +48,7 @@ opt.whichwrap:append "<>[]hl"
|
||||||
g.mapleader = options.mapleader
|
g.mapleader = options.mapleader
|
||||||
|
|
||||||
-- disable some builtin vim plugins
|
-- disable some builtin vim plugins
|
||||||
local disabled_built_ins = {
|
local disabled_built_ins = require("core.utils").load_config().plugins.builtins
|
||||||
"2html_plugin",
|
|
||||||
"getscript",
|
|
||||||
"getscriptPlugin",
|
|
||||||
"gzip",
|
|
||||||
"logipat",
|
|
||||||
"netrw",
|
|
||||||
"netrwPlugin",
|
|
||||||
"netrwSettings",
|
|
||||||
"netrwFileHandlers",
|
|
||||||
"matchit",
|
|
||||||
"tar",
|
|
||||||
"tarPlugin",
|
|
||||||
"rrhelper",
|
|
||||||
"spellfile_plugin",
|
|
||||||
"vimball",
|
|
||||||
"vimballPlugin",
|
|
||||||
"zip",
|
|
||||||
"zipPlugin",
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, plugin in pairs(disabled_built_ins) do
|
for _, plugin in pairs(disabled_built_ins) do
|
||||||
g["loaded_" .. plugin] = 1
|
g["loaded_" .. plugin] = 1
|
||||||
|
@ -75,6 +56,7 @@ end
|
||||||
|
|
||||||
--Defer loading shada until after startup_
|
--Defer loading shada until after startup_
|
||||||
vim.opt.shadafile = "NONE"
|
vim.opt.shadafile = "NONE"
|
||||||
|
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.opt.shadafile = require("core.utils").load_config().options.shadafile
|
vim.opt.shadafile = require("core.utils").load_config().options.shadafile
|
||||||
vim.cmd [[ silent! rsh ]]
|
vim.cmd [[ silent! rsh ]]
|
||||||
|
|
Loading…
Reference in New Issue