fix(lazy): do lazier loading of plugins
This commit is contained in:
@@ -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,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
|
||||||
|
|||||||
@@ -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" },
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
event = "VimEnter",
|
event = "VeryLazy",
|
||||||
config = true,
|
config = true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user