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
4 changed files with 8 additions and 8 deletions

View File

@ -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")