@@ -638,8 +638,8 @@ Configuration examples: *cycle-config-examples*
638
638
General options:
639
639
>
640
640
let g:cycle_no_mappings = 1
641
- let g:cycle_max_conflict = 1
642
- let g:cycle_select_ui = 'ui.select '
641
+ let g:cycle_max_conflict = 14
642
+ let g:cycle_select_ui = 'telescope '
643
643
let g:cycle_conflict_ui = 'confirm'
644
644
<
645
645
@@ -664,8 +664,7 @@ Global groups:
664
664
\ [['on', 'off'], 'match_word'],
665
665
\ [['+', '-']],
666
666
\ [['>', '<']],
667
- \ [['"', "'"]],
668
- \ [['==', '!=']],
667
+ \ [['==', '!='], { 'cond': function('s:not_lua_context') }],
669
668
\ [['0', '1']],
670
669
\ [['and', 'or']],
671
670
\ [["in", "out"]],
@@ -727,6 +726,7 @@ Filetype specified groups:
727
726
>
728
727
let g:cycle_filetype_links = {
729
728
\ 'ghmarkdown': 'markdown',
729
+ \ 'typescriptreact': 'jsx',
730
730
\ }
731
731
732
732
" ruby only
@@ -735,6 +735,12 @@ Filetype specified groups:
735
735
\ [['stylesheet_link_tag ', 'javascript_include_tag ']],
736
736
\ ]
737
737
738
+ " jsx only
739
+ let g:cycle_default_groups_for_jsx = [
740
+ \ [['\v\="(.+)"', '\v\=''(.+)''', '\v\=\{`\$@!(.+)`}'], #{regex: ['=''\1''', '={`\1`}', '="\1"']}],
741
+ \ [['={`${\(.\+\)}`}', '={`\@!\(.\+\)}'], #{regex: ['={\1}', '={`${\1}`}']}],
742
+ \ ]
743
+
738
744
" " demo how to convert 'switch.vim' definition:
739
745
" " This cycles "foo" / 'foo' / :foo
740
746
" let switch_vim_ruby_keyword_string = {
0 commit comments