fix(lazy): do lazier loading of plugins
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"numToStr/Comment.nvim",
|
||||
event = "VimEnter",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
--ignore empty lines
|
||||
ignore = "^$",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"wellle/context.vim",
|
||||
event = "VimEnter",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.g.context_enabled = true
|
||||
vim.g.context_add_mappings = true
|
||||
|
||||
@@ -10,7 +10,7 @@ end
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"tpope/vim-fugitive",
|
||||
event = "VimEnter",
|
||||
event = "VeryLazy",
|
||||
---@type LazyKeysSpec[]
|
||||
keys = {
|
||||
{ "<leader>gd", vim.cmd.Gdiffsplit, mode = "n" },
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
event = "VimEnter",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
on_attach = function(bufnr)
|
||||
local gs = package.loaded.gitsigns
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
event = "VimEnter",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
local custom_moonfly = require("lualine.themes.moonfly")
|
||||
custom_moonfly.normal.c.bg = require("moonfly").palette.bg
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"williamboman/mason.nvim",
|
||||
event = "VimEnter",
|
||||
event = "VeryLazy",
|
||||
config = true,
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
---@type LazyPluginSpec
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
event = "VimEnter",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
event = "VimEnter",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"c", -- recommended default
|
||||
|
||||
Reference in New Issue
Block a user