summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 18:01:04 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 18:01:04 -0500
commitc0397f1f4c80e73a2e4ccd1946703fe6a5bb405e (patch)
tree5b95649c140083e2af4332bb92260842436f22c9 /README.md
parent87c8bd6eb27edb4bfc539967235c3a1e2f8d77e4 (diff)
go to type definition
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 83c037d..5c2982d 100644
--- a/README.md
+++ b/README.md
@@ -129,7 +129,15 @@ I would recommend trying out an LSP server if you're unsure about which one to u
ted has support for [LSPs](https://microsoft.github.io/language-server-protocol/)!
-You can Ctrl+Click on an identifier to go to its definition.
+You can Ctrl+Click on an identifier to go to its definition, or Ctrl+Shift+Click to go
+to its declaration, or Ctrl+Alt+Click to go to its type's definition.
+
+(clangd seems to sometimes go to the declaration even
+when the definition should be available, e.g.
+when Ctrl+clicking on the function declarations
+in `ted.h`. This is Not My Fault,
+and VSCode's clangd extension suffers from the same problem.)
+
You can also press Ctrl+D to get a searchable list of all functions/types where you can select one to go to
its definition.