summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fd3198e)
LazyFile is a custom event in LazyVim that simple wraps the BufReadPost,
BufNewFile and BufWritePre events. Let's just be explicit and use them
directly.
-- Finds and lists all of the TODO, HACK, BUG, etc comment
-- in your project and loads them into a browsable list.
cmd = { "TodoTrouble"},
-- Finds and lists all of the TODO, HACK, BUG, etc comment
-- in your project and loads them into a browsable list.
cmd = { "TodoTrouble"},
+ event = { "BufReadPost", "BufNewFile", "BufWritePre" },
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next Todo Comment" },
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next Todo Comment" },
-- git signs highlights text that has changed since the list
-- git commit, and also lets you interactively stage & unstage
-- hunks in a commit.
-- git signs highlights text that has changed since the list
-- git commit, and also lets you interactively stage & unstage
-- hunks in a commit.
+ event = { "BufReadPost", "BufNewFile", "BufWritePre" },
opts = {
signs = {
add = { text = "▎" },
opts = {
signs = {
add = { text = "▎" },
return {
{ "mfussenegger/nvim-lint",
return {
{ "mfussenegger/nvim-lint",
+ event = { "BufReadPost", "BufNewFile", "BufWritePre" },
opts = {
-- Event to trigger linters
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
opts = {
-- Event to trigger linters
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
return {
{ "neovim/nvim-lspconfig",
return {
{ "neovim/nvim-lspconfig",
+ event = { "BufReadPost", "BufNewFile", "BufWritePre" },
dependencies = {
"mason.nvim",
{ "williamboman/mason-lspconfig.nvim", config = function() end }, -- don't configure yet
dependencies = {
"mason.nvim",
{ "williamboman/mason-lspconfig.nvim", config = function() end }, -- don't configure yet
{ "nvim-treesitter/nvim-treesitter",
dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" },
build = ":TSUpdate",
{ "nvim-treesitter/nvim-treesitter",
dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" },
build = ":TSUpdate",
- event = { "LazyFile", "VeryLazy" },
+ event = { "BufReadPost", "BufNewFile", "BufWritePre" , "VeryLazy" },
lazy = vim.fn.argc(-1) == 0, -- load treesitter early when opening a file from the cmdline
init = function(plugin)
-- PERF: add nvim-treesitter queries to the rtp and it's custom query predicates early
lazy = vim.fn.argc(-1) == 0, -- load treesitter early when opening a file from the cmdline
init = function(plugin)
-- PERF: add nvim-treesitter queries to the rtp and it's custom query predicates early
-- Automatically add closing tags for HTML and JSX
{
"windwp/nvim-ts-autotag",
-- Automatically add closing tags for HTML and JSX
{
"windwp/nvim-ts-autotag",
+ event = { "BufReadPost", "BufNewFile", "BufWritePre" },
{ "echasnovski/mini.indentscope",
enabled = false, -- replaced by snacks.indent
version = false, -- wait till new 0.7.0 release to put it back on semver
{ "echasnovski/mini.indentscope",
enabled = false, -- replaced by snacks.indent
version = false, -- wait till new 0.7.0 release to put it back on semver
+ event = { "BufReadPost", "BufNewFile", "BufWritePre" },
opts = function (_, opts)
return {
draw = {
opts = function (_, opts)
return {
draw = {