mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-03 22:14:39 +02:00
fix(plugins): lazy-loading on BufReadPre or BufReadPost, should also use BufNewFile. Fixes #169
This commit is contained in:
parent
088914e1dd
commit
5f5a564a82
4 changed files with 8 additions and 8 deletions
|
@ -188,7 +188,7 @@ return {
|
||||||
-- git signs
|
-- git signs
|
||||||
{
|
{
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
event = "BufReadPre",
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
opts = {
|
opts = {
|
||||||
signs = {
|
signs = {
|
||||||
add = { text = "▎" },
|
add = { text = "▎" },
|
||||||
|
@ -225,7 +225,7 @@ return {
|
||||||
-- references
|
-- references
|
||||||
{
|
{
|
||||||
"RRethy/vim-illuminate",
|
"RRethy/vim-illuminate",
|
||||||
event = "BufReadPost",
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
opts = { delay = 200 },
|
opts = { delay = 200 },
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("illuminate").configure(opts)
|
require("illuminate").configure(opts)
|
||||||
|
@ -271,7 +271,7 @@ return {
|
||||||
{
|
{
|
||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
cmd = { "TodoTrouble", "TodoTelescope" },
|
cmd = { "TodoTrouble", "TodoTelescope" },
|
||||||
event = "BufReadPost",
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
config = true,
|
config = true,
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
|
|
|
@ -2,7 +2,7 @@ return {
|
||||||
-- lspconfig
|
-- lspconfig
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
event = "BufReadPre",
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "folke/neoconf.nvim", cmd = "Neoconf", config = true },
|
{ "folke/neoconf.nvim", cmd = "Neoconf", config = true },
|
||||||
{ "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } },
|
{ "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } },
|
||||||
|
@ -125,7 +125,7 @@ return {
|
||||||
-- formatters
|
-- formatters
|
||||||
{
|
{
|
||||||
"jose-elias-alvarez/null-ls.nvim",
|
"jose-elias-alvarez/null-ls.nvim",
|
||||||
event = "BufReadPre",
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = { "mason.nvim" },
|
dependencies = { "mason.nvim" },
|
||||||
opts = function()
|
opts = function()
|
||||||
local nls = require("null-ls")
|
local nls = require("null-ls")
|
||||||
|
|
|
@ -3,7 +3,7 @@ return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
version = false, -- last release is way too old and doesn't work on Windows
|
version = false, -- last release is way too old and doesn't work on Windows
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
event = "BufReadPost",
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
keys = {
|
keys = {
|
||||||
{ "<c-space>", desc = "Increment selection" },
|
{ "<c-space>", desc = "Increment selection" },
|
||||||
{ "<bs>", desc = "Schrink selection", mode = "x" },
|
{ "<bs>", desc = "Schrink selection", mode = "x" },
|
||||||
|
|
|
@ -149,7 +149,7 @@ return {
|
||||||
-- indent guides for Neovim
|
-- indent guides for Neovim
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
event = "BufReadPost",
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
opts = {
|
opts = {
|
||||||
-- char = "▏",
|
-- char = "▏",
|
||||||
char = "│",
|
char = "│",
|
||||||
|
@ -163,7 +163,7 @@ return {
|
||||||
{
|
{
|
||||||
"echasnovski/mini.indentscope",
|
"echasnovski/mini.indentscope",
|
||||||
version = false, -- wait till new 0.7.0 release to put it back on semver
|
version = false, -- wait till new 0.7.0 release to put it back on semver
|
||||||
event = "BufReadPre",
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
opts = {
|
opts = {
|
||||||
-- symbol = "▏",
|
-- symbol = "▏",
|
||||||
symbol = "│",
|
symbol = "│",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue