Skip to content

Commit 16bbe96

Browse files
authored
Merge pull request #2 from nvim-treesitter/update-readme
Update README/docs
2 parents 9d4b9da + 352e2e4 commit 16bbe96

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Refactor modules for [nvim-treesitter](https://github.com/nvim-treesitter/nvim-t
44

55
## Installation
66

7-
You can install `nvim-treesitter` with your favorite package manager, or using the default `pack` feature of Neovim!
7+
You can install `nvim-treesitter-refactor` with your favorite package manager,
8+
or using the default `pack` feature of Neovim!
9+
10+
Note: This plugin requires [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) installed.
811

912
### Using a package manager
1013

@@ -14,7 +17,7 @@ If you are using [vim-plug](https://github.com/junegunn/vim-plug), put this in y
1417
Plug 'nvim-treesitter/nvim-treesitter-refactor'
1518
```
1619

17-
## Refactor: highlight definitions
20+
## Highlight definitions
1821

1922
Highlights definition and usages of the current symbol under the cursor.
2023

@@ -28,7 +31,7 @@ require'nvim-treesitter.configs'.setup {
2831
EOF
2932
```
3033

31-
## Refactor: highlight current scope
34+
## Highlight current scope
3235

3336
Highlights the block from the current scope where the cursor is.
3437

@@ -42,7 +45,7 @@ require'nvim-treesitter.configs'.setup {
4245
EOF
4346
```
4447

45-
## Refactor: smart rename
48+
## Smart rename
4649

4750
Renames the symbol under the cursor within the current scope (and current file).
4851

@@ -61,7 +64,7 @@ require'nvim-treesitter.configs'.setup {
6164
EOF
6265
```
6366

64-
## Refactor: navigation
67+
## Navigation
6568

6669
Provides "go to definition" for the symbol under the cursor,
6770
and lists the definitions from the current file. If you use

doc/nvim-treesitter-refactor.txt

+16-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
*nvim-treesitter-refactor*
1+
*nvim-treesitter-refactor.txt*
22

33
Minimum version of neovim: nightly
44

55
Authors: Steven Sojka <steelsojka@gmail.com>
66
Yazdani Kiyan <yazdani.kiyan@protonmail.com>
77
Vigouroux Thomas <tomvig38@gmail.com>
8-
https://github.com/nvim-treesitter/nvim-treesitter/graphs/contributors
8+
https://github.com/nvim-treesitter/nvim-treesitter-refactor/graphs/contributors
99

1010
Type |gO| to see the table of contents.
1111

1212
==============================================================================
13-
QUICK START *nvim-treesitter-quickstart*
13+
QUICK START *nvim-treesitter-refactor*
1414

15-
See :help nvim-treesitter on how to configure modules
15+
See |nvim-treesitter-modules| on how to configure modules.
1616

1717
------------------------------------------------------------------------------
18-
REFACTOR *nvim-treesitter-refactor-mod*
18+
MODULES *nvim-treesitter-refactor-modules*
1919

20-
*nvim-treesitter-highlight-definitions-submod*
20+
*nvim-treesitter-refactor-highlight-definitions*
2121
Highlight definitions~
2222

2323
Highlights definition and usages of the current symbol under the cursor.
@@ -37,7 +37,7 @@ Supported options:
3737
EOF
3838
<
3939

40-
*nvim-treesitter-highlight-current-scope-submod*
40+
*nvim-treesitter-refactor-highlight-current-scope*
4141
Highlight current scope~
4242

4343
Highlights the block from the current scope where the cursor is.
@@ -57,7 +57,7 @@ Supported options:
5757
EOF
5858
<
5959

60-
*nvim-treesitter-smart-rename-submod*
60+
*nvim-treesitter-refactor-smart-rename*
6161
Smart rename~
6262

6363
Renames the symbol under the cursor within the current scope (and current file).
@@ -85,7 +85,7 @@ Supported options:
8585
EOF
8686
<
8787

88-
*nvim-treesitter-navigation-submod*
88+
*nvim-treesitter-refactor-navigation*
8989
Navigation~
9090

9191
Provides "go to definition" for the symbol under the cursor,
@@ -133,24 +133,21 @@ Supported options:
133133
<
134134

135135
==============================================================================
136-
MODULE-HIGHLIGHTS *nvim-treesitter-module-highlights*
137-
138-
Apart from the general purpose highlights in |nvim-treesitter-highlights|,
139-
some submodules use their own highlight groups to visualize additional
140-
information.
136+
HIGHLIGHTS *nvim-treesitter-refactor-highlights*
141137

142138
`TSDefinition`
143139
*hl-TSDefinition*
144-
Used by refactor.highlight_definitions to highlight the definition of the
145-
symbol under the cursor.
140+
Used by |nvim-treesitter-refactor-highlight-definitions| to highlight the
141+
definition of the symbol under the cursor.
146142

147143
`TSDefinitionUsage`
148144
*hl-TSDefinitionUsage*
149-
Used by refactor.highlight_definitions to highlight usages of the symbol under
150-
the cursor.
145+
Used by |nvim-treesitter-refactor-highlight-definitions| to highlight usages
146+
of the symbol under the cursor.
151147

152148
`TSCurrentScope`
153149
*hl-TSCurrentScope*
154-
Used by refactor.highlight_current_scope to highlight the current scope.
150+
Used by |nvim-treesitter-refactor-highlight-current-scope| to highlight the
151+
current scope.
155152

156153
vim:tw=78:ts=8:expandtab:noet:ft=help:norl:

0 commit comments

Comments
 (0)