From 5948aba886e8aad26043402684cf85c307813c4d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 22 Aug 2020 20:46:40 +0200 Subject: feat(refactor.navigation): add navigation.goto_{next,previous}_usage --- README.md | 5 +++++ doc/nvim-treesitter.txt | 14 ++++++++++++++ lua/nvim-treesitter/configs.lua | 4 +++- lua/nvim-treesitter/refactor/navigation.lua | 25 ++++++++++++++++++++----- lua/nvim-treesitter/textobjects/move.lua | 16 ++-------------- lua/nvim-treesitter/ts_utils.lua | 20 ++++++++++++++++++++ lua/nvim-treesitter/utils.lua | 8 ++++++++ 7 files changed, 72 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index dde61824e..cfdde0c3d 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,9 @@ EOF 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. + ```lua lua <`. + - goto_previous_usage: go to previous usage of identifier. + Defaults to ``. > lua <