From 32982fdceecc5318e98c3bba636d3efe8e1c96d2 Mon Sep 17 00:00:00 2001 From: pml68 Date: Sat, 4 May 2024 11:08:57 +0200 Subject: feat: enable lazy caching, disable some rtp plugins, disable Rosé Pine italics, MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit set lazy to true by default --- lua/pml68/lazy.lua | 20 +++++++++++++++++++- lua/pml68/plugins.lua | 7 +++---- 2 files changed, 22 insertions(+), 5 deletions(-) (limited to 'lua') diff --git a/lua/pml68/lazy.lua b/lua/pml68/lazy.lua index 6ac9111..86d2be5 100644 --- a/lua/pml68/lazy.lua +++ b/lua/pml68/lazy.lua @@ -13,4 +13,22 @@ vim.opt.rtp:prepend(lazypath) local plugins = require("pml68.plugins") -require("lazy").setup(plugins) +require("lazy").setup(plugins, { + defaults = { lazy = true }, + performance = { + cache = { + enabled = true, + }, + rtp = { + disabled_plugins = { + "matchit", + "matchparen", + "gzip", + "tarPlugin", + "tohtml", + "tutor", + "zipPlugin", + }, + }, + }, +}) diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index d53141d..ae02c05 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -130,8 +130,6 @@ local plugins = { vim.cmd("MasonInstall " .. table.concat(opts.ensure_installed, " ")) end end, {}) - - vim.g.mason_binaries_list = opts.ensure_installed end, build = ":MasonInstallAll", }, @@ -149,10 +147,12 @@ local plugins = { "rose-pine/neovim", name = "rose-pine", priority = 1000, + lazy = false, config = function() require("rose-pine").setup({ styles = { - transparency = true + transparency = true, + italic = false, } }) vim.cmd("colorscheme rose-pine") @@ -296,7 +296,6 @@ local plugins = { --LaTeX { "lervag/vimtex", - lazy = true, dependencies = "micangl/cmp-vimtex", init = function() vim.g.vimtex_view_method = 'mupdf' -- cgit v1.2.3