@@ -103,7 +103,7 @@ are supported (with individual support for each function may vary):
103103 normal mode:
104104 - Using this function in visual mode will print out whatever is in the
105105 visual selection.
106- - Setting ` { normal = true } ` to the function will automatically find the variable
106+ - Passing ` { normal = true } ` to the function will automatically find the variable
107107 under the cursor and print it from normal mode without needing visual mode at all
108108 - ** Cleanup:** Automated cleanup of all print statements generated by the
109109 plugin
@@ -121,6 +121,37 @@ setup function.
121121require (' refactoring' ).setup ({})
122122```
123123
124+ Here are all the available options for the setup function and their defaults:
125+
126+ ``` lua
127+ require (' refactoring' ).setup ({
128+ prompt_func_return_type = {
129+ go = false ,
130+ java = false ,
131+
132+ cpp = false ,
133+ c = false ,
134+ h = false ,
135+ hpp = false ,
136+ cxx = false ,
137+ },
138+ prompt_func_param_type = {
139+ go = false ,
140+ java = false ,
141+
142+ cpp = false ,
143+ c = false ,
144+ h = false ,
145+ hpp = false ,
146+ cxx = false ,
147+ },
148+ printf_statements = {},
149+ print_var_statements = {},
150+ })
151+ ```
152+
153+ See each of the sections below for details on each configuration option.
154+
124155### Configuration for Refactoring Operations<a name =" config-refactoring " ></a >
125156
126157#### Using Direct Remaps<a name =" config-refactoring-direct " ></a >
@@ -202,8 +233,8 @@ vim.api.nvim_set_keymap(
202233
203234-- Print var
204235
205- -- Remap in normal mode will automatically find the variable under the cursor and print it
206- vim .api .nvim_set_keymap (" n" , " <leader>rv" , " :lua require('refactoring').debug.print_var({})<CR>" , { noremap = true })
236+ -- Remap in normal mode and passing { normal = true } will automatically find the variable under the cursor and print it
237+ vim .api .nvim_set_keymap (" n" , " <leader>rv" , " :lua require('refactoring').debug.print_var({ normal = true })<CR>" , { noremap = true })
207238-- Remap in visual mode will print whatever is in the visual selection
208239vim .api .nvim_set_keymap (" v" , " <leader>rv" , " :lua require('refactoring').debug.print_var({})<CR>" , { noremap = true })
209240
@@ -294,9 +325,5 @@ require('refactoring').setup({
294325 c = true ,
295326 java = true ,
296327 },
297- -- custom print_var_statements by language
298- print_var_statements = {}
299- -- custom printf_statements by language
300- printf_statements = {}
301328})
302329```
0 commit comments