vwm.vim icon indicating copy to clipboard operation
vwm.vim copied to clipboard

How to use with Vista?

Open marcusbuffett opened this issue 5 years ago • 6 comments

First off, thank you for the awesome plugin!

I can't seem to get Vista to work nicely with this, I have the following setup (copied from the example):

"vwm
let s:dev_panel = {
      \  'name': 'dev_panel',
      \  'opnAftr': ['edit'],
      \  'left':
      \  {
      \    'v_sz': 33,
      \    'init': ['NERDTree'],
      \    'bot': {
      \      'init': ['Vista', 'sleep 50ms']
      \    }
      \  }
      \}

let g:vwm#layouts = [s:dev_panel]

nnoremap <leader>ld :VwmOpen dev_panel<CR>

But when I activate the dev_panel layout, I just get an empty file in that panel, instead of the vista window. Any ideas what could be causing it?

marcusbuffett avatar Jan 15 '20 23:01 marcusbuffett

It seems like this could be because the command buffer regrouping isn't working, maybe the init is being called after creating the new windows, instead of before? Not sure, just throwing it out there

marcusbuffett avatar Jan 15 '20 23:01 marcusbuffett

Have you tried playing with the sleep time? Some plugins try to lay themselves out in a way that interferes with vwm.vim, which is why for some plugins you must include a sleep, so that there is no race condition between the plugin and vwm.vim.

I was not able to recreate the issue on my end. I used this config for the layout:

let g:vwm#layouts += [
      \ {
      \  'name': 'dev_panel',
      \  'opnAftr': ['edit'],
      \  'left':
      \  {
      \    'v_sz': 33,
      \    'init': ['Defx -columns=mark:indent:icons:filename:type', function('s:defx_restore_mods'), function('s:defx_mods')],
      \    'bot': {
      \      'init': ['Vista', 'sleep 50ms']
      \    }
      \  }
      \}
      \]

fireflowerr avatar Jan 16 '20 20:01 fireflowerr

Played with sleep time, even 1500ms doesn't seem to do it. I am using neovim, does this plugin work with neovim?

marcusbuffett avatar Jan 17 '20 02:01 marcusbuffett

Do any layouts work or is the issue only with Vista? What version of neovim are you using?

fireflowerr avatar Jan 17 '20 02:01 fireflowerr

I have the same issue. it seems only Vista has the problem, if i replace Vista with NERDTree, i got two working NERDTrees perfectly.

richox avatar Mar 21 '20 07:03 richox

I use Vista only because there is no better choice, or even second choice, of another LSP-supported function list. The problem of failed to open or, precisely, delayed to open window is not considered to be a bug in Vista though it's often happened to me.

liangkarl avatar Mar 29 '21 06:03 liangkarl