🚀 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.lang.yaml",
"lazyvim.plugins.extras.linting.eslint", "lazyvim.plugins.extras.linting.eslint",
"lazyvim.plugins.extras.test.core", "lazyvim.plugins.extras.test.core",
"lazyvim.plugins.extras.ui.alpha",
"lazyvim.plugins.extras.ui.edgy", "lazyvim.plugins.extras.ui.edgy",
"lazyvim.plugins.extras.util.dot", "lazyvim.plugins.extras.util.dot",
"plugins.extras.coding.ai.codeium", "plugins.extras.coding.ai.codeium",
@ -59,7 +58,6 @@
"plugins.extras.lsp.inc-rename", "plugins.extras.lsp.inc-rename",
"plugins.extras.lsp.lens", "plugins.extras.lsp.lens",
"plugins.extras.lsp.lightbulb", "plugins.extras.lsp.lightbulb",
"plugins.extras.ui.alpha",
"plugins.extras.ui.breadcrumbs", "plugins.extras.ui.breadcrumbs",
"plugins.extras.ui.context", "plugins.extras.ui.context",
"plugins.extras.ui.highlight-undo", "plugins.extras.ui.highlight-undo",
@ -80,3 +78,4 @@
}, },
"version": 2 "version": 2
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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