diff --git a/homes/x86_64-linux/christopher@cobalt/config/dev.nix b/homes/x86_64-linux/christopher@cobalt/config/dev.nix index 2396b52..b49ae30 100644 --- a/homes/x86_64-linux/christopher@cobalt/config/dev.nix +++ b/homes/x86_64-linux/christopher@cobalt/config/dev.nix @@ -6,6 +6,8 @@ code-cursor vscode + rfc + # Language Servers lua-language-server rust-analyzer @@ -13,7 +15,6 @@ nodePackages.typescript-language-server nil # nix lsp - zx # Tool for writing better scripts # trurl # Parsing and manipulating URLs via CLI ripgrep # Grep file search dig # DNS @@ -21,7 +22,7 @@ tokei # Like cloc zeal # Offline documentation browser just # Just a command runner - claude-code + claude-monitor devenv # Build tools @@ -37,11 +38,50 @@ nodejs_20.pkgs.pnpm ]; - programs.direnv = { - enable = true; - config.global.log_filter = "^$"; - }; - programs.direnv.nix-direnv.enable = true; + programs = { + go.enable = true; - programs.go.enable = true; + direnv = { + enable = true; + nix-direnv.enable = true; + + config.global.log_filter = "^$"; + }; + + claude-code = { + enable = true; + commands = { + fix-github-issue = '' + Please analyze and fix the GitHub issue $ARGUMENTS. + + Follow these steps: + 1. Use `gh issue view` to get the issue details + 2. Understand the problem described in the issue. If necessary, follow links to other mentioned issues to understand context + 3. Search the codebase for relevant files + 4. Implement the necessary changes to fix the issue + 5. Write and run tests to verify the fix + 6. Ensure code passes linting and type checking + 7. Create a descriptive commit message + 8. Push and create a PR + + Remember to use the GitHub CLI (`gh`) for all GitHub-related tasks. + ''; + + commit = '' + --- + argument-hint: [commit-style] + --- + + Create a commit message. The message should be succinct, only with a one-liner explaining + the most relevant changes and possibly some reasoning for changes, but only where relevant. + + Try to follow this commit style, if specified: '$ARGUMENTS'. If no commit style is specified, + try doing atomic commits. That is, split up larger changes into atomic commits that stand + for themselves. + + Do not include a `Co-authored-by`. + ''; + }; + }; + }; }