diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-08-29 11:37:26 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-08-31 22:16:27 +0200 |
| commit | bc365219671a132458a6f1259cd58799bd54d3f7 (patch) | |
| tree | d15540d21b929c59309a71c3f1db924fece85a94 /README.md | |
| parent | 6352cdc943f707d3f6db5f0c8ed7820ba02f7ed5 (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.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
