From 98a126fef040702654275b07504f07a4443a21e0 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 7 Aug 2023 23:40:38 +0200 Subject: [PATCH] vim: add plugin 'folke/todo-comments.nvim' --- config/nvim/lua/fschauen/plugins/todo-comments.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config/nvim/lua/fschauen/plugins/todo-comments.lua diff --git a/config/nvim/lua/fschauen/plugins/todo-comments.lua b/config/nvim/lua/fschauen/plugins/todo-comments.lua new file mode 100644 index 0000000..44f6994 --- /dev/null +++ b/config/nvim/lua/fschauen/plugins/todo-comments.lua @@ -0,0 +1,13 @@ +local telescope = vim.F.npcall(require, 'fschauen.plugins.telescope') +local trigger = telescope and telescope.trigger or 'f' + +return { + 'folke/todo-comments.nvim', + dependencies = { 'nvim-lua/plenary.nvim' }, + config = true, + event = { 'BufReadPost', 'BufNewFile' }, + keys = { + { trigger .. 't', 'TodoTelescope' }, + }, +} +