We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ced26 commit 3859e21Copy full SHA for 3859e21
lua/debugprint/init.lua
@@ -195,10 +195,15 @@ M.debugprint_regular = function(opts)
195
local filetype_config = get_filetype_config()
196
197
if filetype_config then
198
- opts.variable_name = utils.get_variable_name(
199
- global_opts.ignore_treesitter or opts.ignore_treesitter,
200
- filetype_config
201
- )
+ local ignore_treesitter
+
+ if global_opts.ignore_treesitter or opts.ignore_treesitter then
+ -- Works around issue with optional types
202
+ ignore_treesitter = true
203
+ end
204
205
+ opts.variable_name =
206
+ utils.get_variable_name(ignore_treesitter, filetype_config)
207
208
if not opts.variable_name then
209
return
0 commit comments