Skip to content

Commit

Permalink
refactor: clean up target list (andersevenrud#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud authored Feb 4, 2022
1 parent f288fe6 commit 96a84b3
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions lua/nvim_context_vt/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,43 @@ M.default_opts = {

M.targets = {
'function',
'method_declaration',
'function_declaration',
'function_definition',
'lexical_declaration',
'arguments',
'case',

'local_function',
'arrow_function',

'class_definition',
'method_definition',
'arguments',
'function_definition',

'method_declaration',
'function_declaration',
'lexical_declaration',
'class_declaration',
'interface_declaration',
'enum_declaration',
'type_declaration',

'try_statement',
'catch_clause',
'finally_clause',

'if_statement',
'if_expression',

'switch_expression',

'class_definition',
'class_declaration',
'call_expression',
'struct_expression',

'test_expression',

'while_expression',
'while_statement',

'for_expression',

'try_statement',
'if_statement',
'while_statement',
'foreach_statement',
'for_statement',
'for_in_statement',

'with_statement',
'case_statement',

-- rust
'match_expression',
Expand All @@ -68,18 +72,15 @@ M.targets = {
'for',

-- typescript/javascript
'interface_declaration',
'enum_declaration',
'call_expression',
'export_statement',
'property_signature',
'switch_case',

-- lua,
'local_variable_declaration',
'variable_declaration',

-- go
'type_declaration',
'type_spec',
'short_var_declaration',
'defer_statement',
Expand All @@ -93,7 +94,6 @@ M.targets = {
'default_case',

-- cpp
'case_statement',
'for_range_loop',

-- python
Expand Down

0 comments on commit 96a84b3

Please sign in to comment.