summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-08-29 11:37:26 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-08-31 22:16:27 +0200
commitbc365219671a132458a6f1259cd58799bd54d3f7 (patch)
treed15540d21b929c59309a71c3f1db924fece85a94 /README.md
parent6352cdc943f707d3f6db5f0c8ed7820ba02f7ed5 (diff)
feat(refactor.navigation): allow a `fallback_function` for goto_definition
`fallback_function` is called when nvim-treesitter can not resolve the variable under the cursor.
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index cfdde0c3..7ae98523 100644
--- a/README.md
+++ b/README.md
@@ -184,9 +184,10 @@ EOF
## Refactor: navigation
Provides "go to definition" for the symbol under the cursor,
-and lists the definitions from the current file.
-goto_next_usage/goto_previous_usage go to the next usage of the
-identifier under the cursor.
+and lists the definitions from the current file. If you use
+`goto_definition_lsp_fallback` instead of `goto_definition` in the config below
+`vim.lsp.buf.definition` is used if nvim-treesitter can not resolve the variable.
+`goto_next_usage`/`goto_previous_usage` go to the next usage of the identifier under the cursor.
```lua