misc cleanups

This commit is contained in:
Barrett Ruth 2026-02-10 20:07:39 -05:00
parent 9d612dc9cc
commit 749f79c4b6
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
10 changed files with 63 additions and 73 deletions

View file

@ -13,54 +13,46 @@ function _G.bmap(mapping, opts)
_G.map(mapping, vim.tbl_extend('force', opts or {}, { buffer = 0 }))
end
local disabled_plugins = {
'2html_plugin',
'bugreport',
'getscript',
'getscriptPlugin',
'gzip',
'logipat',
'netrw',
'netrwFileHandlers',
'netrwPlugin',
'netrwSettings',
'optwin',
'rplugin',
'rrhelper',
'synmenu',
'tar',
'tarPlugin',
'tohtml',
'tutor',
'vimball',
'vimballPlugin',
'zip',
'zipPlugin',
}
for _, plugin in ipairs(disabled_plugins) do
vim.g['loaded_' .. plugin] = 1
end
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.uv.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'git@github.com:folke/lazy.nvim.git',
'https://github.com/folke/lazy.nvim.git',
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup('plugins', {
git = { url_format = 'git@github.com:%s.git' },
change_detection = { enabled = false },
performance = {
cache = {
enabled = true,
},
reset_packpath = true,
rtp = {
reset = true,
disabled_plugins = {
'gzip',
'netrwPlugin',
'tarPlugin',
'tohtml',
'tutor',
'zipPlugin',
'2html_plugin',
'getscript',
'getscriptPlugin',
'logipat',
'netrw',
'netrwSettings',
'netrwFileHandlers',
'tar',
'tarPlugin',
'rrhelper',
'vimball',
'vimballPlugin',
'zip',
'zipPlugin',
'tutor',
'rplugin',
'synmenu',
'optwin',
'bugreport',
},
},
},
})