Skip to content

Commit

Permalink
Fix incorrect lazy loading events
Browse files Browse the repository at this point in the history
Signed-off-by: Micah Halter <micah@balena.io>
  • Loading branch information
mehalter committed Mar 30, 2022
1 parent 186fd5c commit 91d9c81
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lua/core/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ local astro_plugins = {
-- Cursorhold fix
{
"antoinemadec/FixCursorHold.nvim",
event = "BufRead",
event = { "BufRead", "BufNewFile" },
config = function()
vim.g.cursorhold_updatetime = 100
end,
Expand Down Expand Up @@ -135,7 +135,7 @@ local astro_plugins = {
{
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
event = "BufRead",
event = { "BufRead", "BufNewFile" },
cmd = {
"TSInstall",
"TSInstallInfo",
Expand Down Expand Up @@ -169,7 +169,7 @@ local astro_plugins = {
-- Completion engine
{
"hrsh7th/nvim-cmp",
event = "BufRead",
event = "BufWinEnter",
config = function()
require("configs.cmp").config()
end,
Expand Down Expand Up @@ -202,7 +202,7 @@ local astro_plugins = {
-- LSP manager
{
"williamboman/nvim-lsp-installer",
event = "BufRead",
event = "BufWinEnter",
cmd = {
"LspInstall",
"LspInstallInfo",
Expand Down Expand Up @@ -237,7 +237,7 @@ local astro_plugins = {
-- Formatting and linting
{
"jose-elias-alvarez/null-ls.nvim",
event = "BufRead",
event = "BufWinEnter",
config = function()
local null_ls = require("core.utils").user_plugin_opts "null-ls"
if type(null_ls) == "function" then
Expand Down Expand Up @@ -269,7 +269,7 @@ local astro_plugins = {
-- Git integration
{
"lewis6991/gitsigns.nvim",
event = "BufRead",
event = { "BufRead", "BufNewFile" },
config = function()
require("configs.gitsigns").config()
end,
Expand All @@ -288,7 +288,7 @@ local astro_plugins = {
-- Color highlighting
{
"norcalli/nvim-colorizer.lua",
event = "BufRead",
event = { "BufRead", "BufNewFile" },
config = function()
require("configs.colorizer").config()
end,
Expand Down Expand Up @@ -317,7 +317,7 @@ local astro_plugins = {
-- Commenting
{
"numToStr/Comment.nvim",
event = "BufRead",
event = "BufWinEnter",
config = function()
require("configs.comment").config()
end,
Expand Down Expand Up @@ -345,7 +345,7 @@ local astro_plugins = {
-- Smooth scrolling
{
"karb94/neoscroll.nvim",
event = "BufRead",
event = "BufWinEnter",
config = function()
require("configs.neoscroll").config()
end,
Expand Down

0 comments on commit 91d9c81

Please sign in to comment.