diff options
| -rw-r--r-- | IDEAS.md | 14 | ||||
| -rw-r--r-- | internal/lsp/handlers.go | 3 | ||||
| -rw-r--r-- | internal/version.go | 2 |
3 files changed, 14 insertions, 5 deletions
@@ -64,5 +64,15 @@ command = "hexai" ## Prompting -* Write a new function: `;Implement a function counting the number of files in a directory;` -* In-place code add: `;Get number of files in a directory;` +* Write a new function: `` +* In-place code add: `` + +# Summary: +# - Refactor and modularize code, add unit tests +# - Address TODOs and improve diagnostics/code actions +# - Integrate LLM-based code/text completion, code generation, and inline chat +# - Support multiple LLMs (Ollama, OpenAI, Claude, Gemini) +# - Enable code block actions (commenting, refactoring) +# - Provide Helix LSP server integration and usage notes +# - Facilitate prompting for code generation and actions:w + diff --git a/internal/lsp/handlers.go b/internal/lsp/handlers.go index ae43b4c..d8c13a1 100644 --- a/internal/lsp/handlers.go +++ b/internal/lsp/handlers.go @@ -278,10 +278,9 @@ func inParamList(current string, cursor int) bool { return open >= 0 && cursor > open && (close == -1 || cursor <= close) } -// TODO: Not just be a Go code completion engine, make this flexible. func buildPrompts(inParams bool, p CompletionParams, above, current, below, funcCtx string) (string, string) { if inParams { - sys := "You are a terse Go code completion engine for function signatures. Return only the parameter list contents (without parentheses), no braces, no prose. Prefer idiomatic names and types." + sys := "You are a code completion engine for function signatures. Return only the parameter list contents (without parentheses), no braces, no prose. Prefer idiomatic names and types." user := fmt.Sprintf("Cursor is inside the function parameter list. Suggest only the parameter list (no parentheses).\nFunction line: %s\nCurrent line (cursor at %d): %s", funcCtx, p.Position.Character, current) return sys, user } diff --git a/internal/version.go b/internal/version.go index 673db85..e9c3a2b 100644 --- a/internal/version.go +++ b/internal/version.go @@ -1,3 +1,3 @@ package internal -const Version = "0.0.1" +const Version = "0.0.2" |
