Closed ViiEx closed 2 years ago
Sorry for the late reply.
Main idea: overwrite the default option manually.
call SpaceVim#layers#load('shell')
" this call function MUST STAY BELOW
" Otherwise, it will get overwritten by `call SpaceVim#layers#load('shell')`
call SpaceVim#layers#load('shell',
\ {
\ 'default_position' : 'bottom',
\ 'default_height' : 100,
\ }
\ )
I hope this would solve your problem. This solution works for each layer as long as SpaceVim provides that option.
https://github.com/SpaceVim/SpaceVim/pull/4545#issuecomment-1003721728
I will update your question to Hack-SpaceVim documentation. Thank you for your question.
Works perfectly thank you a lot for the quick reply!!!!
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
?