Closed kkharji closed 4 years ago
What (I think) is happening is this:
fey
where I put all of the globally available functions and variables.
e.g. fey.ui_status_line.status_line.lightline
is a function for setting syncing lightline's colorscheme to the global colorscheme.let g:batch = 1
and source init.vim
, the line fey = {}
is run, which clears out the table. It is not repopulated with anything from any config.lua
, since g:batch == 1
.init.vim
) so they still refer to these functions inside an effectively empty fey
table. One thing of note is that whenever you modify and write to config.lua
file that was previously active (in your init.lua
), that file is immediately loaded. So :Sync
would only be needed if you install new packages/plugins/whatever they are called. That should hopefully happen rarely enough that exiting out of vim and doing a fey sync
wouldn't be too uncomfortable.
I have tried to fix it. g:batch
is renamed to g:fey_load_packages
btw.
Thanks a lot š, and yes shall script makes sense now
@faerryn I see you've changed the readme description of fey to configurations framework? do u really mean it, I have few thoughts on what will make the next great conf framework for neovim, wouls you like to open a new issue?
Hi there, I'm hacking on
fey
to create my own configuration (Thanks a lot), which I wouldn't be doing iffey
had not choice to be a distribution likedoom
andspacevim
(please consider changing fey to a "framework" targeted towards current hard-core users to configure neovim with lua, rather than as a distribution for new user looking to have a outofbox IDE with neovim (which theres tone of out here), if this something could be further discussed, open an issue "Fey as high-level framework" and tag me).Source configuration from within vim problem I'm used to editing my configuration, adding new plugin and source
$MYVIMRC
, and depending on external shell script isn't something practical for me. So I create the following commandAfter running it or sourcing in general, I get the following error
However, with the command I defined above I defined, fzf and lightline brings additional errors when activated
When trying to open fzf:->
When exiting from goyo and lightline:->
Thanks