liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags
https://liuchengxu.github.io/vista.vim
MIT License
1.88k stars 89 forks source link

Statusline gets cleared when changing buffers even when `let g:vista_disable_statusline = 1` is set #453

Open spearman opened 1 year ago

spearman commented 1 year ago

Describe the bug Open two buffers and open Vista window. When changing buffers without the Vista window open, the statusline normally reads:

"main.c" 1411 lines --44%--

When the Vista window is open, it is shown for a split second before it gets cleared.

let g:vista_disable_statusline = 1 is set.

Environment:

Vista info

    Current FileType: rust
Avaliable Executives: ['ctags', 'vim_lsp']
    Global Variables:
    let g:vista = {'get_tagline_under_cursor': function('21'), 'winnr': function('19'), 'source': {'fname': 'client/src/mode/practice.rs', 'bufnr': 1, 'get_winid': function('23'), 'winid': 1000, 'winnr': 1, 'extension': function('28'), 'line': function('26'), 'get_winnr': function('22'), 'filetype': function('24'), 'lines': function('25'), 'line_trimmed': function('27'), 'scope_seperator': function('29'), 'fpath': '/home/spearman/rs/local/tombs/client/src/mode/practice.rs'}, 'winid': function('20'), '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#renderer#enable_icon = 0
    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 = 'vim_lsp'
    let g:vista_disable_statusline = 1
    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_no_mappings = 0
    let g:vista_sidebar_position = 'vertical botright'
    let g:vista_sidebar_width = 30
    let g:vista_stay_on_open = 0
    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

  1. Open two buffers
  2. Open Vista window
  3. Use :bn or :bp command

Expected behavior Status line should not get cleared.

Actual behavior Status line gets cleared.

Screenshot or gif (if possible) NA