diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 9cb46087..22faebaf 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -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 = { diff --git a/lua/lazyvim/plugins/lsp/init.lua b/lua/lazyvim/plugins/lsp/init.lua index e5aceff6..7f201d88 100644 --- a/lua/lazyvim/plugins/lsp/init.lua +++ b/lua/lazyvim/plugins/lsp/init.lua @@ -2,7 +2,7 @@ return { -- lspconfig { "neovim/nvim-lspconfig", - event = "BufReadPre", + event = { "BufReadPre", "BufNewFile" }, dependencies = { { "folke/neoconf.nvim", cmd = "Neoconf", config = true }, { "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } }, @@ -125,7 +125,7 @@ return { -- formatters { "jose-elias-alvarez/null-ls.nvim", - event = "BufReadPre", + event = { "BufReadPre", "BufNewFile" }, dependencies = { "mason.nvim" }, opts = function() local nls = require("null-ls") diff --git a/lua/lazyvim/plugins/treesitter.lua b/lua/lazyvim/plugins/treesitter.lua index ea54fabc..96920f55 100644 --- a/lua/lazyvim/plugins/treesitter.lua +++ b/lua/lazyvim/plugins/treesitter.lua @@ -3,7 +3,7 @@ return { "nvim-treesitter/nvim-treesitter", version = false, -- last release is way too old and doesn't work on Windows build = ":TSUpdate", - event = "BufReadPost", + event = { "BufReadPost", "BufNewFile" }, keys = { { "", desc = "Increment selection" }, { "", desc = "Schrink selection", mode = "x" }, diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index 2097a8ef..6b4d4830 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -149,7 +149,7 @@ return { -- indent guides for Neovim { "lukas-reineke/indent-blankline.nvim", - event = "BufReadPost", + event = { "BufReadPost", "BufNewFile" }, opts = { -- char = "▏", char = "│", @@ -163,7 +163,7 @@ return { { "echasnovski/mini.indentscope", version = false, -- wait till new 0.7.0 release to put it back on semver - event = "BufReadPre", + event = { "BufReadPre", "BufNewFile" }, opts = { -- symbol = "▏", symbol = "│",