From 937b53db870777ead951af2629646c90dd6babc1 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 7 Jul 2024 18:26:24 +0100 Subject: [PATCH] nixvim todo-comments and fixed TODOs in codebase --- home/common/core/nixvim/plugins/default.nix | 1 + home/common/core/nixvim/plugins/lsp.nix | 2 +- .../core/nixvim/plugins/todo-comments.nix | 19 +++++++++++++++++++ home/common/optional/desktop/dwm/dunst.nix | 1 - home/common/optional/desktop/dwm/sxhkdrc.nix | 2 +- home/common/optional/desktop/dwm/xinitrc.nix | 2 +- hosts/common/users/sam/default.nix | 2 +- 7 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 home/common/core/nixvim/plugins/todo-comments.nix diff --git a/home/common/core/nixvim/plugins/default.nix b/home/common/core/nixvim/plugins/default.nix index 53c5e8a..3ee5712 100644 --- a/home/common/core/nixvim/plugins/default.nix +++ b/home/common/core/nixvim/plugins/default.nix @@ -15,6 +15,7 @@ ./treesitter.nix ./alpha.nix ./fold.nix + ./todo-comments.nix ]; # Load Plugins that aren't provided as modules by nixvim diff --git a/home/common/core/nixvim/plugins/lsp.nix b/home/common/core/nixvim/plugins/lsp.nix index eb224c7..dcc4d2d 100644 --- a/home/common/core/nixvim/plugins/lsp.nix +++ b/home/common/core/nixvim/plugins/lsp.nix @@ -49,7 +49,7 @@ }; }; }; - # TODO enable otter.nvim when merged into nixvim stable + # TODO: enable otter.nvim when merged into nixvim stable # otter = { # enable = true; # }; diff --git a/home/common/core/nixvim/plugins/todo-comments.nix b/home/common/core/nixvim/plugins/todo-comments.nix new file mode 100644 index 0000000..93a4d65 --- /dev/null +++ b/home/common/core/nixvim/plugins/todo-comments.nix @@ -0,0 +1,19 @@ +{ + programs = { + nixvim = { + plugins.todo-comments = { + enable = true; + }; + keymaps = [ + { + mode = [ "n" ]; + action = "TodoTelescope"; + key = "ft"; + options = { + silent = true; + }; + } + ]; + }; + }; +} diff --git a/home/common/optional/desktop/dwm/dunst.nix b/home/common/optional/desktop/dwm/dunst.nix index 9de3609..011ef49 100644 --- a/home/common/optional/desktop/dwm/dunst.nix +++ b/home/common/optional/desktop/dwm/dunst.nix @@ -30,7 +30,6 @@ #format = ''%I %s %p\n%b''; format = ''%s:\n%b\n\n%a ''; - #TODO dynamic fonts font = "monospace"; # Options are "left", "center", and "right". diff --git a/home/common/optional/desktop/dwm/sxhkdrc.nix b/home/common/optional/desktop/dwm/sxhkdrc.nix index 5fa40ae..119cd82 100644 --- a/home/common/optional/desktop/dwm/sxhkdrc.nix +++ b/home/common/optional/desktop/dwm/sxhkdrc.nix @@ -1,5 +1,5 @@ { - # TODO add emoji and dmenu-dict scripts + # TODO: add emoji and dmenu-dict scripts home.file.".config/sxhkd/sxhkdrc" = { recursive = true; text = '' diff --git a/home/common/optional/desktop/dwm/xinitrc.nix b/home/common/optional/desktop/dwm/xinitrc.nix index 0ccf44b..a83c02e 100644 --- a/home/common/optional/desktop/dwm/xinitrc.nix +++ b/home/common/optional/desktop/dwm/xinitrc.nix @@ -4,7 +4,7 @@ let monitor = "${toString (builtins.map (m: "xrandr --output ${ m.name } --mode ${ toString( m.width )}x${ toString( m.height )} --pos ${ toString( m.x)}x${ toString( m.y)}" ) config.monitors)}"; in { - # TODO configure x11 to look in .config/x11 + # TODO: configure x11 to look in .config/x11 home.file.".xinitrc" = { recursive = true; text = '' diff --git a/hosts/common/users/sam/default.nix b/hosts/common/users/sam/default.nix index ce21007..72e88b3 100644 --- a/hosts/common/users/sam/default.nix +++ b/hosts/common/users/sam/default.nix @@ -49,7 +49,7 @@ in # Setup software specific templates for user # Should be part of home-manager - waiting for templates functionality # See here https://github.com/Mic92/sops-nix/issues/423 and here https://github.com/Mic92/sops-nix/issues/498 - # TODO migrate db_ui connection to home-manager when issue 423 and 498 are resolved in github:Mic92/sops-nix + # TODO: migrate db_ui connection to home-manager when issue 423 and 498 are resolved in github:Mic92/sops-nix sops.templates."dbui_connections.json" = { path = "/home/${username}/.local/share/db_ui/connections.json"; owner = "${username}";