🚀 perf(nvim): changed events for bufread plugins

This commit is contained in:
Sergio Laín 2023-12-06 23:38:47 +01:00
parent 3ea19614f1
commit 0d259afe49
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
6 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
return {
"vidocqh/auto-indent.nvim",
event = "BufReadPost",
event = "LazyFile",
opts = {
---@param lnum: number
---@return number

View file

@ -1,5 +1,5 @@
return {
"backdround/tabscope.nvim",
event = "BufRead",
event = "LazyFile",
opts = {},
}

View file

@ -1,5 +1,5 @@
return {
"LudoPinelli/comment-box.nvim",
event = "BufReadPost",
event = "LazyFile",
opts = {},
}

View file

@ -25,7 +25,7 @@ return {
},
{ -- better statuscolumn
"luukvbaal/statuscol.nvim",
event = { "BufRead", "BufNewFile" },
event = { "LazyFile" },
opts = function()
local builtin = require("statuscol.builtin")
return {
@ -47,7 +47,7 @@ return {
},
{ -- better fold
"kevinhwang91/nvim-ufo",
event = { "BufRead", "BufNewFile" },
event = { "LazyFile" },
dependencies = { "kevinhwang91/promise-async" },
init = function()
vim.o.foldcolumn = "1"

View file

@ -1,6 +1,6 @@
return {
"tzachar/highlight-undo.nvim",
event = "BufReadPost",
event = "LazyFile",
opts = {
duration = 700,
},

View file

@ -1,6 +1,6 @@
return {
"mawkler/modicator.nvim",
event = "BufReadPost",
event = "LazyFile",
init = function()
-- These are required for Modicator to work
vim.o.cursorline = true