diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-21 16:23:13 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-21 16:23:13 +0200 |
commit | 75d7534cc7d0b157b7a6ed51bdb95750275bb6aa (patch) | |
tree | 354920aa64196b75ec12bf8359f5bad92597b5a2 /modules | |
parent | fix(flake/packages): Provide pkgsStable to `nvim` pkg (diff) | |
download | nixos-config-75d7534cc7d0b157b7a6ed51bdb95750275bb6aa.tar.gz nixos-config-75d7534cc7d0b157b7a6ed51bdb95750275bb6aa.zip |
refactor(home/nvim/plgs/todo-comments): Migrate to RFC42 `settings` key
Diffstat (limited to 'modules')
-rw-r--r-- | modules/home/conf/nvim/plgs/todo-comments/default.nix | 82 |
1 files changed, 42 insertions, 40 deletions
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"]; + }; + */ }; - */ }; }; } |