From 9ab9bf00f34f5bf20905106a5303deef282ec0cd Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 30 Mar 2024 20:23:52 -0500 Subject: [PATCH] fix(nvim): properly load `todo-comments.nvim` --- .../nvim/lua/plugins/configs/trouble.lua | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/trouble.lua b/dots/.config/nvim/lua/plugins/configs/trouble.lua index 149a8f5d..6cbf3c1d 100644 --- a/dots/.config/nvim/lua/plugins/configs/trouble.lua +++ b/dots/.config/nvim/lua/plugins/configs/trouble.lua @@ -1,4 +1,24 @@ return { + { + "folke/todo-comments.nvim", + event = "VeryLazy", + cmd = { + "TodoTrouble", + "TodoTelescope", + "TodoQuickFix", + "TodoLocList", + }, + dependencies = { "nvim-lua/plenary.nvim" }, + opts = { + keywords = { + SECURITY = { + icon = "󰒃", + color = "warning", + alt = { "SEC", "SECURITY" }, + }, + }, + }, + }, { "folke/trouble.nvim", branch = "dev", @@ -34,25 +54,7 @@ return { event = { "QuickFixCmdPre" }, dependencies = { "nvim-tree/nvim-web-devicons", - { - "folke/todo-comments.nvim", - cmd = { - "TodoTrouble", - "TodoTelescope", - "TodoQuickFix", - "TodoLocList", - }, - dependencies = { "nvim-lua/plenary.nvim" }, - opts = { - keywords = { - SECURITY = { - icon = "󰒃", - color = "warning", - alt = { "SEC", "SECURITY" }, - }, - }, - }, - }, + "todo-comments.nvim" }, opts = { win = {