Closed crmtestresco closed 5 years ago
I can't reproduce your issue locally, but did find a bug in popup :(. Please provide a minimal vimrc if your problem persists.
Hi,
this is minimum .vimrc I can reproduce the bug with:
let g:pathogen_disabled = ['FastFold' , 'ale' , 'argtextobj.vim' , 'fzf' , 'fzf.vim' , 'goyo.vim' , 'haskell-vim' , 'limelight.vim' , 'setcolors.vim' , 'ultisnips' , 'undotree' , 'vim-airline' , 'vim-colorschemes' , 'vim-commentary' , 'vim-easymotion' , 'vim-expand-region' , 'vim-fugitive' , 'vim-gutentags' , 'vim-livedown' , 'vim-qf' , 'vim-repeat' , 'vim-ripgrep' , 'vim-sensible' , 'vim-signjump' , 'vim-sleuth' , 'vim-snippets' , 'vim-stay' , 'vim-surround' , 'vim-textobj-function' , 'vim-textobj-function-javascript' , 'vim-textobj-user' , 'vim-unimpaired' , 'vim-wordmotion' , 'vim-workspace']
call pathogen#infect()
filetype plugin indent on
" Vista plugin configuration
let g:vista_default_executive = 'coc'
let g:vista_cursor_delay = 1
let g:vista_floating_delay = 1
let g:vista_echo_cursor_strategy = 'floating_win'
I also noticed that with this config:
I can reproduce with the following vimrc in vim and I believe it's an issue of coc.nvim. If you disable coc.nvim via :CocDisable
, the symptom disappears. If you enable it again via :CocEnable
, the issue occurs.
set nocompatible
let $DOTVIM = expand('$HOME/.vim')
set runtimepath+=$DOTVIM/plugged/vista.vim
set runtimepath+=$DOTVIM/plugged/coc.nvim
filetype plugin indent on
" Vista plugin configuration
let g:vista_default_executive = 'coc'
let g:vista_cursor_delay = 1
let g:vista_floating_delay = 1
let g:vista_echo_cursor_strategy = 'floating_win'
After some investigation, I think this line is related https://github.com/neoclide/coc.nvim/tree/5380d3639671d1e11949a41daea735da7cf1f0c5/plugin/coc.vim#L208 . This autocmd
leads to the unexpected close.
Describe the bug Popup window with preview of surroundings of selected method (Typescript code) closes itself without performing any action/movement after cca 1s. This behavior does not manifest itself on e.g. variables.
Possible hints:
g:vista_cursor_delay
andg:vista_floating_delay
it is possible to use values that stop this behavior. In my case e.g.:However the plugin is unusable with these settings.
Environment:
Vista info
Steps to reproduce given the above info
:Vista!!
j,k
Expected behavior Popup window stays open until the cursor is moved from the method.
Actual behavior Popup window closes automatically without moving away from the method.
Thank you for creating this plugin.