codicocodes / dotfyle

Find the best Neovim plugins
https://dotfyle.com
MIT License
657 stars 29 forks source link

Add init.fnl as accepted init file #54

Closed LordMZTE closed 1 year ago

LordMZTE commented 1 year ago

Dotfyle currently won't let me specify my root config file because of my sophisticated Neovim config build system where my config consists of a native part in Zig and interpreted parts in Fennel. In order to accommodate this as well as even more exotic setups, it'd be great if any file in the dotfiles repo could be selected.

For my neovim config, see this directory in my dotfiles (github mirror).

In my case, I'd consider the best candidate for a "root init file" to be this file, however I'm just met with this unhelpful dialog: image

LordMZTE commented 1 year ago

Just read about dotfyle analyzing configs for metadata, my config is obviously a lost cause here, but it'd still be neat if I could add it.

codicocodes commented 1 year ago

At the moment I validate that the init file is init.vim or init.lua to limit people from uploading repositories that are not actually Neovim configurations. I can imagine people just adding garbage repositories that need to be moderated (which I would like to minimize).

I appreciate your use case, and will think about it. If you have ideas taking these concerns in mind as well please let me know.

LordMZTE commented 1 year ago

My config would theoretically work if we also allowed init.fnl (which I think is actually somewhat common place). This file however isn't particularly interesting on my setup, so maybe we check that either init.fnl, init.vim or init.lua is present and then allow to user to pick an arbitrary file?

codicocodes commented 1 year ago

init.fnl is a good point, I will add support for it.

codicocodes commented 1 year ago

Added support for init.fnl - which makes it possible to sync your config.

Your plugins and metadata are still not picked up properly, but at least the config can be uploaded.

image

We have a project in the works that might be helpful here https://github.com/creativenull/dotfyle-metadata.nvim - but it's not supported in dotfyle yet.

LordMZTE commented 1 year ago

Thanks!