aboutsummaryrefslogtreecommitdiffstats
path: root/doc
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 /doc
parentFix(modules): simplify configs.setup (diff)
downloadnvim-treesitter-bc365219671a132458a6f1259cd58799bd54d3f7.tar
nvim-treesitter-bc365219671a132458a6f1259cd58799bd54d3f7.tar.gz
nvim-treesitter-bc365219671a132458a6f1259cd58799bd54d3f7.tar.bz2
nvim-treesitter-bc365219671a132458a6f1259cd58799bd54d3f7.tar.lz
nvim-treesitter-bc365219671a132458a6f1259cd58799bd54d3f7.tar.xz
nvim-treesitter-bc365219671a132458a6f1259cd58799bd54d3f7.tar.zst
nvim-treesitter-bc365219671a132458a6f1259cd58799bd54d3f7.zip
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 'doc')
-rw-r--r--doc/nvim-treesitter.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 09e3d1677..36fe1dbd4 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -244,6 +244,11 @@ Supported options:
- keymaps:
- goto_definition: go to the definition of the symbol under the cursor.
Defaults to `gnd`.
+ - goto_definition_lsp_fallback: go to the definition of the symbol under
+ the cursor or use vim.lsp.buf.definition if the symbol can not be
+ resolved. You can use your own fallback function if create a mapping for
+ `lua require'nvim-treesitter.refactor.navigation(nil, fallback_function)<cr>` .
+ No default mapping
- list_definitions: list all definitions from the current file.
Defaults to `gnD`.
- goto_next_usage: go to next usage of identifier under the cursor.