vwm.vim
vwm.vim copied to clipboard
How to use with Vista?
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?
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
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']
\ }
\ }
\}
\]
Played with sleep time, even 1500ms doesn't seem to do it. I am using neovim, does this plugin work with neovim?
Do any layouts work or is the issue only with Vista? What version of neovim are you using?
I have the same issue. it seems only Vista has the problem, if i replace Vista with NERDTree, i got two working NERDTrees perfectly.
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.