41 lines
1.2 KiB
Lua
41 lines
1.2 KiB
Lua
-- Installs lazy.nvim on first run, then loads every spec in lua/plugins/*.lua.
|
|
|
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', 'https://github.com/folke/lazy.nvim.git', lazypath }
|
|
if vim.v.shell_error ~= 0 then
|
|
vim.api.nvim_echo({ { 'Could not clone lazy.nvim (offline? git missing?):\n' .. out, 'ErrorMsg' } }, true, {})
|
|
return
|
|
end
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
require('lazy').setup('plugins', {
|
|
ui = {
|
|
icons = vim.g.have_nerd_font and {} or {
|
|
cmd = '⌘',
|
|
config = '🛠',
|
|
event = '📅',
|
|
ft = '📂',
|
|
init = '⚙',
|
|
keys = '🗝',
|
|
plugin = '🔌',
|
|
runtime = '💻',
|
|
require = '🌙',
|
|
source = '📄',
|
|
start = '🚀',
|
|
task = '📌',
|
|
lazy = '💤 ',
|
|
},
|
|
},
|
|
rocks = { enabled = false }, -- no luarocks needed, avoids a warning on boxes without it
|
|
checker = { enabled = false },
|
|
change_detection = { notify = false },
|
|
install = { colorscheme = { 'tokyonight-night', 'habamax' } },
|
|
performance = {
|
|
rtp = {
|
|
disabled_plugins = { 'gzip', 'tarPlugin', 'tohtml', 'tutor', 'zipPlugin' },
|
|
},
|
|
},
|
|
})
|