summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-03 16:47:54 +0300
committerPaul Buetow <paul@buetow.org>2025-09-03 16:47:54 +0300
commitaa7204c968f8cd4f2df36369dae4fe77b487f39e (patch)
tree74efa68199891168e5ac864c9b14bfca2e89c389 /docs
parent3ee19139a95441a3ce10690377de8f453c7aec3f (diff)
lsp: add 'Hexai: document code' action to add doc comments to selected code
Diffstat (limited to 'docs')
-rw-r--r--docs/usage-examples.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/usage-examples.md b/docs/usage-examples.md
index 3e96ade..9abb0b8 100644
--- a/docs/usage-examples.md
+++ b/docs/usage-examples.md
@@ -66,6 +66,7 @@ Operate on the current selection in Helix:
- Rewrite selection: finds the first instruction inside the selection and rewrites accordingly.
- Resolve diagnostics: gathers only diagnostics overlapping the selection and fixes them by editing the selected code; diagnostics outside the selection are not changed.
- Implement unit test (Go): when editing a `.go` file, adds a code action to generate a unit test for the function under the cursor. If `<file>_test.go` exists, appends a new `Test*`; otherwise creates the test file with `package` and `import "testing"`.
+- Document code: adds idiomatic documentation comments to the selected code, preserving behavior and returning only the documented code.
Instruction sources (first match wins):