Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent icon setting does not work for coc executive #393

Closed
rockyzhang24 opened this issue Mar 15, 2021 · 8 comments
Closed

Indent icon setting does not work for coc executive #393

rockyzhang24 opened this issue Mar 15, 2021 · 8 comments

Comments

@rockyzhang24
Copy link

rockyzhang24 commented Mar 15, 2021

Describe the bug
let g:vista_icon_indent doesn't work for the coc executive. In README, I saw "this option only works the LSP executives", does is mean that it only works for the vim_lsp executive, or all LSP based executives?

Thank you so much.

Environment:

  • OS: macOS
  • Vim/Neovim version:
    NVIM v0.5.0-dev+314b222c2
    Build type: Release
  • This plugin version: the latest
  • I'm using some LSP client:
    • Related Vim LSP client: coc
    • The Vim LSP client version:
    • Have you tried updated to the latest version of this LSP client: Yes

Vista info

Current FileType: javascript

Avaliable Executives: ['coc', 'ctags']
Global Variables:
let g:vista = {'get_tagline_under_cursor': function('36'), 'winnr': function('34'), 'silent': v:false, 'source': {'fpath': '/Users/yanzhang/gitrepos/leetcode-cli/lib/cli.js', 'bufnr': 2, 'get_winid': function('38'), 'fname': 'lib/cli.js', 'winnr': 1, 'extension': function('43'), 'line': function('41'), 'get_winnr': function('37'), 'filetype': function('39'), 'lines': function('40'), 'winid': 1000, 'line_trimmed': function('42'), 'scope_seperator': function('44')}, 'provider': 'coc', 'winid': function('35'), 'tmps': []}
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#render#enable_icon = 1
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 = 'coc'
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_fold_toggle_icons = ['▼', '▶']
let g:vista_fzf_preview = ['right:50%']
let g:vista_icon_indent = ['╰─▸ ', '├─▸ ']
let g:vista_ignore_kinds = []
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

Steps to reproduce given the above info

Just open any file. I opened a js file for the testing.

Thank you.

@liuchengxu
Copy link
Owner

Sorry for the late reply, I have updated the comment about g:vista_icon_indent, which works only for the kind renderer.

@rockyzhang24
Copy link
Author

Thank you. So it means that g:vista_icon_indent only works for the ctags and g:vista#renderer#ctags must be set to kind, right?

@liuchengxu
Copy link
Owner

liuchengxu commented Apr 1, 2021 via email

@rockyzhang24
Copy link
Author

rockyzhang24 commented Apr 1, 2021

How to use the kind renderer for LSP, g:vista#renderer#lsp? Specifically, I am using coc.nvim, how should I config it to use kinder renderer? I cannot this in the help doc. Thanks a lot.

@liuchengxu
Copy link
Owner

liuchengxu commented Apr 1, 2021 via email

@rockyzhang24
Copy link
Author

Okay. So what you mean is that if I use LSP clients other than coc, the default renderer is kind, right? Thanks.

@liuchengxu
Copy link
Owner

Yes, the other LSP clients only support the kind renderer right now.

@rockyzhang24
Copy link
Author

I see. Thank your.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants