liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags

Home Page:https://liuchengxu.github.io/vista.vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: ruby nest module not show in ctags viewer

SolaWing opened this issue · comments

Describe the bug
issue code, vista ctags viewer show nothing.

module FOO::AA
  class BB
  end
end

ok code

module AA
  class BB
  end
end

Environment:

  • OS:
  • Vim/Neovim version: 0.8.1
  • This plugin version: 33774af
  • I'm using universal-ctags:
    Universal Ctags 5.9.0, Copyright (C) 2015-2022 Universal Ctags Team

Vista info

Current FileType: ruby
Avaliable Executives: ['coc', 'ctags']
    Global Variables:
    let g:vista = {'winnr': function('13'), 'tree': {}, 'source': {'fname': '/private/tmp/a.rb', 'bufnr': 1, 'get_winid': function('17'), 'winid': 1000, 'winnr': 1, 'extension': function('22'), 'line': function('20'), 'get_winnr': function('16'), 'filetype': function('18'), 'lines': function('19'), 'line_trimmed': function('21'), 'scope_seperator': function('23'), 'fpath': '/private/tmp/a.rb'}, 'without_scope': [], 'get_tagline_under_cursor': function('15'), 'provider': 'ctags', 'with_scope': [{'scopeKind': 'module', 'name': 'AA', 'scope': 'FOO', 'line': 1, '_type': 'tag', 'kind': 'module'}, {'scopeKind': 'module', 'name': 'BB', 'scope': 'AA', 'line': 2, '_type': 'tag', 'kind': 'class'}], 'functions': [{'lnum': 1, 'text': 'AA'}], 'raw': [{'scopeKind': 'module', 'name': 'AA', 'scope': 'FOO', 'line': 1, '_type': 'tag', 'kind': 'module'}, {'scopeKind': 'module', 'name': 'BB', 'scope': 'AA', 'line': 2, '_type': 'tag', 'kind': 'class'}], 'kinds': ['module', 'class'], 'ctags_cmd': 'ctags --format=2 --excmd=pattern --fields=+nksSaf --extras=+F --sort=no --append=no --extras=  --language-force=ruby --ruby-kinds=Scfm --output-format=json --fields=-PF -f- /var/folders/x6/wvs8342520x49xbvhlh8l1tr0000gp/T/528563e6908eed8915d92a5368d2a57948b017a91d480e12f92324686b5560df.rb', 'bufnr': 5, 'vlnum_cache': [], 'tmps': ['/var/folders/x6/wvs8342520x49xbvhlh8l1tr0000gp/T/528563e6908eed8915d92a5368d2a57948b017a91d480e12f92324686b5560df.rb', '/var/folders/x6/wvs8342520x49xbvhlh8l1tr0000gp/T/528563e6908eed8915d92a5368d2a57948b017a91d480e12f92324686b5560df.rb', '/var/folders/x6/wvs8342520x49xbvhlh8l1tr0000gp/T/528563e6908eed8915d92a5368d2a57948b017a91d480e12f92324686b5560df.rb'], 'pos': [{'lnum': 1, 'leftcol': 0, 'col': 0, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 0}, 2, '1resize 56|vert 1resize 164|2resize 56|vert 2resize 50|1resize 56|vert 1resize 164|2resize 56|vert 2resize 50|'], 'floating_visible': v:false, 'raw_by_kind': {'module': [{'scopeKind': 'module', 'name': 'AA', 'scope': 'FOO', 'line': 1, '_type': 'tag', 'kind': 'module'}], 'class': [{'scopeKind': 'module', 'name': 'BB', 'scope': 'AA', 'line': 2, '_type': 'tag', 'kind': 'class'}]}, 'winid': 1010}
    let g:vista#executive#ctags#support_json_format = 1
    let g:vista#executives = ['ale', 'coc', 'ctags', 'lcn', 'nvim_lsp', 'vim_lsc', 'vim_lsp']
    let g:vista#extensions = ['markdown', 'rst']
    let g:vista#finders = ['clap', 'fzf', 'skim']
    let g:vista#renderer#ctags = 'default'
    let g:vista#renderer#default#vlnum_offset = 3
    let g:vista#renderer#enable_icon = 1
    let g:vista#renderer#enable_kind = 0
    let g:vista#renderer#icons = {'subroutine': '羚', 'method': '', 'func': '', 'variables': '', 'constructor': '略', 'field': '', 'interface': '', 'type': '', 'packages': '', 'property': '襁', 'implementation': '', 'default': '', 'augroup': 'פּ', 'macro': '', 'enumerator': '', 'const': '', 'macros': '', 'map': 'פּ', 'fields': '', 'functions': '', 'enum': '', 'function': '', 'target': '', 'typedef': '', 'namespace': '', 'enummember': '', 'variable': '', 'modules': '', 'constant': '', 'struct': '', 'singletonmethod': '', 'types': '', 'module': '', 'typeParameter': '', 'package': '', 'class': '', 'member': '', 'var': '', 'union': '鬒'}
    let g:vista_blink = [2, 100]
    let g:vista_close_on_fzf_select = 0
    let g:vista_close_on_jump = 0
    let g:vista_cursor_delay = 400
    let g:vista_default_executive = 'ctags'
    let g:vista_disable_statusline = 0
    let g:vista_echo_cursor = 1
    let g:vista_enable_centering_jump = 1
    let g:vista_executive_for = {}
    let g:vista_find_absolute_nearest_method_or_function = 0
    let g:vista_find_nearest_method_or_function_delay = 300
    let g:vista_floating_border = 'none'
    let g:vista_fold_toggle_icons = ['▼', '▶']
    let g:vista_fzf_preview = []
    let g:vista_icon_indent = ['└ ', '│ ']
    let g:vista_ignore_kinds = []
    let g:vista_log_file = '/tmp/vista.log'
    let g:vista_no_mappings = 0
    let g:vista_sidebar_position = 'vertical botright'
    let g:vista_sidebar_width = 50
    let g:vista_stay_on_open = 1
    let g:vista_top_level_blink = [2, 100]
    let g:vista_update_on_text_changed = 0
    let g:vista_update_on_text_changed_delay = 500

Expected behavior
should show ctags tree

Actual behavior
show nothing..

Screenshot or gif (if possible)
issue code
图片

ok code
图片