You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to configure my spacevim using init.vim instead of init.toml. I was wondering tho how can I set the layers options tho.
For example I wanted to change the shell position to be at the bottom instead at the top. With a little bit of digging into the source code of SpaceVim I tried the following:
callSpaceVim#layers#load('shell')
" this call function MUST STAY BELOW" Otherwise, it will get overwritten by `call SpaceVim#layers#load('shell')`callSpaceVim#layers#load('shell',
\ {
\ 'default_position' : 'bottom',
\ 'default_height' : 100,
\ }
\ )
Check demo
I hope this would solve your problem. This solution works for each layer as long as SpaceVim provides that option.
I'm trying to configure my spacevim using
init.vim
instead ofinit.toml
. I was wondering tho how can I set the layers options tho.For example I wanted to change the
shell
position to be at the bottom instead at the top. With a little bit of digging into the source code of SpaceVim I tried the following:The above function is located at
.SpaceVim/autoload/SpaceVim/layers/shell.vim
at the line138
That only resulted on opening the shell at the right side instead of the bottom.
Any ideas on how to change the my shell to open the way I intend it to and how can I set layer options on
init.vim
?The text was updated successfully, but these errors were encountered: