From 75d7534cc7d0b157b7a6ed51bdb95750275bb6aa Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 21 Aug 2024 16:23:13 +0200 Subject: refactor(home/nvim/plgs/todo-comments): Migrate to RFC42 `settings` key --- .../home/conf/nvim/plgs/todo-comments/default.nix | 82 +++++++++++----------- 1 file changed, 42 insertions(+), 40 deletions(-) (limited to 'modules/home/conf/nvim/plgs') diff --git a/modules/home/conf/nvim/plgs/todo-comments/default.nix b/modules/home/conf/nvim/plgs/todo-comments/default.nix index 35f4b283..e33f961b 100644 --- a/modules/home/conf/nvim/plgs/todo-comments/default.nix +++ b/modules/home/conf/nvim/plgs/todo-comments/default.nix @@ -1,49 +1,51 @@ {...}: { programs.nixvim.plugins.todo-comments = { enable = true; - guiStyle = { - fg = "BOLD"; - bg = "NONE"; - }; - highlight = { - keyword = "wide_fg"; - }; - keywords = { - /* - # Defaults: - FIX = { - icon = " "; # Icon used for the sign, and in search results. - color = "error"; # Can be a hex color, or a named color. - alt = ["FIXME" "BUG" "FIXIT" "ISSUE"]; # A set of other keywords that all map to this FIX keywords. - }; - TODO = { - icon = " "; - color = "info"; - }; - HACK = { - icon = " "; - color = "warning"; - }; - WARN = { - icon = " "; - color = "warning"; - alt = ["WARNING" "XXX"]; - }; - PERF = { - icon = "󰅒 "; - alt = ["OPTIM" "PERFORMANCE" "OPTIMIZE"]; + settings = { + guiStyle = { + fg = "BOLD"; + bg = "NONE"; }; - NOTE = { - icon = "󰍨 "; - color = "hint"; - alt = ["INFO"]; + highlight = { + keyword = "wide_fg"; }; - TEST = { - icon = "⏲ "; - color = "test"; - alt = ["TESTING" "PASSED" "FAILED"]; + keywords = { + /* + # Defaults: + FIX = { + icon = " "; # Icon used for the sign, and in search results. + color = "error"; # Can be a hex color, or a named color. + alt = ["FIXME" "BUG" "FIXIT" "ISSUE"]; # A set of other keywords that all map to this FIX keywords. + }; + TODO = { + icon = " "; + color = "info"; + }; + HACK = { + icon = " "; + color = "warning"; + }; + WARN = { + icon = " "; + color = "warning"; + alt = ["WARNING" "XXX"]; + }; + PERF = { + icon = "󰅒 "; + alt = ["OPTIM" "PERFORMANCE" "OPTIMIZE"]; + }; + NOTE = { + icon = "󰍨 "; + color = "hint"; + alt = ["INFO"]; + }; + TEST = { + icon = "⏲ "; + color = "test"; + alt = ["TESTING" "PASSED" "FAILED"]; + }; + */ }; - */ }; }; } -- cgit 1.4.1