fix(plugins): lazy-loading on BufReadPre or BufReadPost, should also use BufNewFile. Fixes #169

This commit is contained in:
Folke Lemaitre 2023-02-07 21:59:33 +01:00
parent 088914e1dd
commit 5f5a564a82
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 8 additions and 8 deletions

View file

@ -188,7 +188,7 @@ return {
-- git signs
{
"lewis6991/gitsigns.nvim",
event = "BufReadPre",
event = { "BufReadPre", "BufNewFile" },
opts = {
signs = {
add = { text = "" },
@ -225,7 +225,7 @@ return {
-- references
{
"RRethy/vim-illuminate",
event = "BufReadPost",
event = { "BufReadPost", "BufNewFile" },
opts = { delay = 200 },
config = function(_, opts)
require("illuminate").configure(opts)
@ -271,7 +271,7 @@ return {
{
"folke/todo-comments.nvim",
cmd = { "TodoTrouble", "TodoTelescope" },
event = "BufReadPost",
event = { "BufReadPost", "BufNewFile" },
config = true,
-- stylua: ignore
keys = {