fix(lazy): do lazier loading of plugins

This commit is contained in:
2024-10-07 22:34:49 +02:00
parent b6c590f83c
commit 83562bb7a0
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
---@type LazyPluginSpec ---@type LazyPluginSpec
return { return {
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
event = "VimEnter", event = "VeryLazy",
opts = { opts = {
--ignore empty lines --ignore empty lines
ignore = "^$", ignore = "^$",
+1 -1
View File
@@ -1,7 +1,7 @@
---@type LazyPluginSpec ---@type LazyPluginSpec
return { return {
"wellle/context.vim", "wellle/context.vim",
event = "VimEnter", event = "VeryLazy",
init = function() init = function()
vim.g.context_enabled = true vim.g.context_enabled = true
vim.g.context_add_mappings = true vim.g.context_add_mappings = true
+1 -1
View File
@@ -10,7 +10,7 @@ end
---@type LazyPluginSpec ---@type LazyPluginSpec
return { return {
"tpope/vim-fugitive", "tpope/vim-fugitive",
event = "VimEnter", event = "VeryLazy",
---@type LazyKeysSpec[] ---@type LazyKeysSpec[]
keys = { keys = {
{ "<leader>gd", vim.cmd.Gdiffsplit, mode = "n" }, { "<leader>gd", vim.cmd.Gdiffsplit, mode = "n" },
+1 -1
View File
@@ -3,7 +3,7 @@
---@type LazyPluginSpec ---@type LazyPluginSpec
return { return {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
event = "VimEnter", event = "VeryLazy",
opts = { opts = {
on_attach = function(bufnr) on_attach = function(bufnr)
local gs = package.loaded.gitsigns local gs = package.loaded.gitsigns
+1 -1
View File
@@ -3,7 +3,7 @@
---@type LazyPluginSpec ---@type LazyPluginSpec
return { return {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
event = "VimEnter", event = "VeryLazy",
config = function() config = function()
local custom_moonfly = require("lualine.themes.moonfly") local custom_moonfly = require("lualine.themes.moonfly")
custom_moonfly.normal.c.bg = require("moonfly").palette.bg custom_moonfly.normal.c.bg = require("moonfly").palette.bg
+1 -1
View File
@@ -3,6 +3,6 @@
---@type LazyPluginSpec ---@type LazyPluginSpec
return { return {
"williamboman/mason.nvim", "williamboman/mason.nvim",
event = "VimEnter", event = "VeryLazy",
config = true, config = true,
} }
+1 -1
View File
@@ -3,7 +3,7 @@
---@type LazyPluginSpec ---@type LazyPluginSpec
return { return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
event = "VimEnter", event = "VeryLazy",
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
{ {
+1 -1
View File
@@ -4,7 +4,7 @@
return { return {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
build = ":TSUpdate", build = ":TSUpdate",
event = "VimEnter", event = "VeryLazy",
opts = { opts = {
ensure_installed = { ensure_installed = {
"c", -- recommended default "c", -- recommended default