From 02432384f491b0d650846bc3e6c2bc1be2133c24 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 3 Mar 2024 19:46:43 +0000 Subject: [PATCH] Add todo plugin for highlights & telescope integration --- lua/plugins/todo.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/plugins/todo.lua diff --git a/lua/plugins/todo.lua b/lua/plugins/todo.lua new file mode 100644 index 0000000..8abc915 --- /dev/null +++ b/lua/plugins/todo.lua @@ -0,0 +1,18 @@ +return { + 'folke/todo-comments.nvim', + dependencies = { 'nvim-lua/plenary.nvim' }, + config = function() + require('todo-comments').setup({ + signs = false, + highlight = { + before = '', -- Don't highlight before the match + keyword = 'fg', -- Only highlight the foreground + after = '', -- Don't highlight after the match + }, + colors = { + info = { '#489dff' }, + }, + }) + vim.keymap.set('n', 'gt', ':TodoTelescope', { remap = false }) + end +}