You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ Note that on Windows a command prompt window pops up whenever LuaInspect is run
34
34
35
35
When you open any Lua file the semantic highlighting should be enabled automatically within a few seconds, so you don't have to configure anything if you're happy with the defaults.
36
36
37
+
## Commands
38
+
37
39
### The `:LuaInspect` command
38
40
39
41
You don't need to use this command unless you've disabled automatic highlighting using `g:lua_inspect_events`. When you execute this command the plug-in runs the LuaInspect tool and then highlights all variables in the current buffer using one of the following highlighting groups:
@@ -64,12 +66,27 @@ By default the semantic highlighting and the warning messages in the location li
64
66
imap <F6> <C-o>:LuaInspectToggle<CR>
65
67
nmap <F6> :LuaInspectToggle<CR>
66
68
69
+
### The `:LuaInspectRename` command
70
+
71
+
This command renames the variable under the cursor. It's used to define the `<F2>` mapping and can be used if you don't like the default mappings and want to define your own.
72
+
73
+
### The `:LuaInspectGoTo` command
74
+
75
+
This command jumps to the definition of the variable under the cursor. It's used to define the `gd` mapping and can be used if you don't like the default mappings and want to define your own.
76
+
77
+
## Options
78
+
67
79
### The `g:loaded_luainspect` option
68
80
69
81
This variable isn't really an option but if you want to avoid loading the `luainspect.vim` plug-in you can set this variable to any value in your [vimrc script][vimrc]:
70
82
71
83
:let g:loaded_luainspect = 1
72
84
85
+
86
+
### The `g:lua_inspect_mappings` option
87
+
88
+
If this is set to true (1, the default value) then the `<F2>` and `gd` mappings are defined in Lua buffers (as buffer local mappings). You can set it to false (0) to disable the default mappings (so you can define your own).
89
+
73
90
### The `g:lua_inspect_warnings` option
74
91
75
92
When LuaInspect reports warnings about unused variables, wrong argument counts, etc. they are automatically shown in a [location list window][location-list]. If you don't like this add the following to your [vimrc script][vimrc]:
@@ -100,8 +117,8 @@ If you have questions, bug reports, suggestions, etc. the author can be contacte
100
117
101
118
## License
102
119
103
-
This software is licensed under the [MIT license][mit].
0 commit comments