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

How to use with Vista? #8

Open
marcusbuffett opened this issue Jan 15, 2020 · 6 comments
Open

How to use with Vista? #8

marcusbuffett opened this issue Jan 15, 2020 · 6 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@marcusbuffett
Copy link

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
Copy link
Author

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

@fireflowerr
Copy link
Owner

fireflowerr commented Jan 16, 2020

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']
      \    }
      \  }
      \}
      \]

@marcusbuffett
Copy link
Author

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

@fireflowerr
Copy link
Owner

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

@richox
Copy link

richox commented Mar 21, 2020

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

@fireflowerr fireflowerr added bug Something isn't working good first issue Good for newcomers labels Mar 28, 2020
@liangkarl
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants