From 8e340ca5b871bace2dab413af426d1f70e206f10 Mon Sep 17 00:00:00 2001 From: manuuurino <2855338+manuuurino@users.noreply.github.com> Date: Tue, 26 Dec 2023 20:17:11 +0100 Subject: [PATCH 1/3] fix(todo-comments-nvim): Lazy load todo-comments on command --- .../editing-support/todo-comments-nvim/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua b/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua index dabb3235d..ffbff7ad4 100644 --- a/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua +++ b/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua @@ -1,3 +1,8 @@ return { - { "folke/todo-comments.nvim", opts = {}, event = "User AstroFile" }, + { + "folke/todo-comments.nvim", + opts = {}, + event = "User AstroFile", + cmd = { "TodoTrouble", "TodoTelescope" }, + }, } From e2a2195d2f5a0ccf5a1534ce3fdc987f6af3710c Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Tue, 26 Dec 2023 21:59:08 +0100 Subject: [PATCH 2/3] fix(todo-comments-nvim): Add all commands --- lua/astrocommunity/editing-support/todo-comments-nvim/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua b/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua index ffbff7ad4..72840925c 100644 --- a/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua +++ b/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua @@ -3,6 +3,6 @@ return { "folke/todo-comments.nvim", opts = {}, event = "User AstroFile", - cmd = { "TodoTrouble", "TodoTelescope" }, + cmd = { "TodoTrouble", "TodoTelescope", "TodoLocList", "TodoQuickFix" }, }, } From f2b89764c61c2df4cd73b0d49eaa94a28b352b2d Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Tue, 26 Dec 2023 21:59:47 +0100 Subject: [PATCH 3/3] chore(todo-comments-nvim): Fix indenting --- lua/astrocommunity/editing-support/todo-comments-nvim/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua b/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua index 72840925c..f387ea0fb 100644 --- a/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua +++ b/lua/astrocommunity/editing-support/todo-comments-nvim/init.lua @@ -3,6 +3,6 @@ return { "folke/todo-comments.nvim", opts = {}, event = "User AstroFile", - cmd = { "TodoTrouble", "TodoTelescope", "TodoLocList", "TodoQuickFix" }, + cmd = { "TodoTrouble", "TodoTelescope", "TodoLocList", "TodoQuickFix" }, }, }