🚀 perf(nvim): changed events for bufread into lazyfile

This commit is contained in:
Sergio Laín 2023-12-04 00:38:47 +01:00
parent 67d466e276
commit 069903ae38
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
10 changed files with 13 additions and 14 deletions

View file

@ -9,7 +9,6 @@
"lazyvim.plugins.extras.lang.yaml",
"lazyvim.plugins.extras.linting.eslint",
"lazyvim.plugins.extras.test.core",
"lazyvim.plugins.extras.ui.alpha",
"lazyvim.plugins.extras.ui.edgy",
"lazyvim.plugins.extras.util.dot",
"plugins.extras.coding.ai.codeium",
@ -59,7 +58,6 @@
"plugins.extras.lsp.inc-rename",
"plugins.extras.lsp.lens",
"plugins.extras.lsp.lightbulb",
"plugins.extras.ui.alpha",
"plugins.extras.ui.breadcrumbs",
"plugins.extras.ui.context",
"plugins.extras.ui.highlight-undo",
@ -79,4 +77,5 @@
"NEWS.md": "2123"
},
"version": 2
}
}

View file

@ -1,7 +1,7 @@
return {
{
"Weissle/persistent-breakpoints.nvim",
event = "BufReadPost",
event = "LazyFile",
keys = {
{ "<leader>dbd", "<cmd>PBClearAllBreakpoints<cr>", desc = "Delete All Breakpoints" },
{ "<leader>dbB", "<cmd>PBSetConditionalBreakpoint<cr>", desc = "Breakpoint Condition" },

View file

@ -1,7 +1,7 @@
if vim.fn.has("nvim-0.10") == 1 then
return {
"Bekaboo/dropbar.nvim",
event = "BufWinEnter",
event = "LazyFile",
opts = {
sources = {
terminal = {
@ -19,7 +19,7 @@ else
"SmiteshP/nvim-navic",
"nvim-tree/nvim-web-devicons",
},
event = "BufRead",
event = "LazyFile",
opts = {},
}
end

View file

@ -1,6 +1,6 @@
return {
"barrett-ruth/import-cost.nvim",
build = "sh install.sh yarn",
event = "BufReadPost",
event = "LazyFile",
config = true,
}

View file

@ -1,4 +1,4 @@
return {
"sitiom/nvim-numbertoggle",
event = "BufReadPost",
event = "LazyFile",
}

View file

@ -1,6 +1,6 @@
return {
"HiPhish/rainbow-delimiters.nvim",
event = "BufRead",
event = "LazyFile",
opts = {
highlight = {
"RainbowDelimiterBlue",

View file

@ -6,12 +6,12 @@ if vim.fn.has("nvim-0.10") == 1 then
opts = {
excluded_filetypes = excluded_filetypes,
},
event = "BufRead",
event = "LazyFile",
}
else
return {
"dstein64/nvim-scrollview",
event = "BufReadPost",
event = "LazyFile",
keys = { { "<leader>uS", "<cmd>ScrollViewToggle<CR>", desc = "Toggle Scrollview" } },
config = function()
require("scrollview").setup({

View file

@ -1,6 +1,6 @@
return {
"LunarVim/bigfile.nvim",
event = "BufRead",
event = "LazyFile",
opts = {
filesize = 1, -- size of the file in MiB, the plugin round file sizes to the closest MiB
pattern = { "*" }, -- autocmd pattern or function see <### Overriding the detection of big files>

View file

@ -1,6 +1,6 @@
return {
"andweeb/presence.nvim",
lazy = false,
event = "VeryLazy",
opts = {
-- General options
auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)

View file

@ -1,4 +1,4 @@
return {
"wakatime/vim-wakatime",
lazy = false,
event = "VeryLazy",
}