From 4b6d7a3efc841211ee111f9ea1bf101807b562a9 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Sun, 2 Jan 2022 07:41:55 -0800 Subject: [PATCH] Add todo-comments --- neovim/lua/plugins.lua | 11 +++++++++++ neovim/lua/plugins/todo.lua | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 neovim/lua/plugins/todo.lua diff --git a/neovim/lua/plugins.lua b/neovim/lua/plugins.lua index 20a7047..cbb442c 100644 --- a/neovim/lua/plugins.lua +++ b/neovim/lua/plugins.lua @@ -348,6 +348,17 @@ return require("packer").startup({ cmd = { "StartupTime" }, }) + -- Fancy todo highlighting + use({ + "folke/todo-comments.nvim", + requires = { + "nvim-lua/plenary.nvim", + }, + config = function() + require("plugins.todo") + end, + }) + -- Auto sync after bootstrapping on a fresh box if packer_bootstrap then require("packer").sync() diff --git a/neovim/lua/plugins/todo.lua b/neovim/lua/plugins/todo.lua new file mode 100644 index 0000000..24fd8ae --- /dev/null +++ b/neovim/lua/plugins/todo.lua @@ -0,0 +1,23 @@ +require("todo-comments").setup({ + signs = false, + keywords = { + FIX = { + icon = "🩹", + }, + TODO = { + icon = "✏️", + }, + HACK = { + icon = "🙈", + }, + PERF = { + icon = "🚀", + }, + NOTE = { + icon = "📓", + }, + WARNING = { + icon = "⚠️", + }, + }, +})