diff --git a/.vscode/settings.json b/.vscode/settings.json index 9e2650a..6459fc2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -53,6 +53,7 @@ "nordified", "Noto", "nvme", + "ollama", "Östberg", "papirus", "pipewire", @@ -64,6 +65,7 @@ "psycopg", "pulseaudio", "pyenv", + "Qwen", "rtkit", "Rustc", "tailscale", diff --git a/home/.continue/config.json b/home/.continue/config.json new file mode 100644 index 0000000..e336097 --- /dev/null +++ b/home/.continue/config.json @@ -0,0 +1,73 @@ +{ + "models": [ + { + "model": "AUTODETECT", + "title": "Autodetect", + "provider": "ollama" + } + ], + "tabAutocompleteModel": { + "title": "Qwen 2.5 Coder 1.5b", + "provider": "ollama", + "model": "qwen2.5-coder:1.5b" + }, + "customCommands": [ + { + "name": "test", + "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", + "description": "Write unit tests for highlighted code" + } + ], + "contextProviders": [ + { + "name": "code", + "params": {} + }, + { + "name": "docs", + "params": {} + }, + { + "name": "diff", + "params": {} + }, + { + "name": "terminal", + "params": {} + }, + { + "name": "problems", + "params": {} + }, + { + "name": "folder", + "params": {} + }, + { + "name": "codebase", + "params": {} + } + ], + "slashCommands": [ + { + "name": "edit", + "description": "Edit selected code" + }, + { + "name": "comment", + "description": "Write comments for the selected code" + }, + { + "name": "share", + "description": "Export the current chat session to markdown" + }, + { + "name": "cmd", + "description": "Generate a shell command" + }, + { + "name": "commit", + "description": "Generate a git commit message" + } + ] +} diff --git a/modules/home-manager/vscode.nix b/modules/home-manager/vscode.nix index 94454c0..90e1fa2 100644 --- a/modules/home-manager/vscode.nix +++ b/modules/home-manager/vscode.nix @@ -9,6 +9,8 @@ "application/x-zerosize" = "code.desktop"; }; + home.file.".continue/config.json".source = ../../home/.continue/config.json; + catppuccin.vscode.enable = true; programs.vscode = { @@ -63,7 +65,7 @@ "intelephense.telemetry.enabled" = false; # AI - "continue.enableTabAutocomplete" = false; + "continue.enableTabAutocomplete" = true; }; keybindings = [