Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow custom fennel version #1

Open
jaawerth opened this issue Mar 28, 2019 · 3 comments
Open

allow custom fennel version #1

jaawerth opened this issue Mar 28, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@jaawerth
Copy link
Owner

It's important to allow a user to specify an instance of fennel to use, but there are a few approaches that only differ by available and default behaviors.

Should configurable fennel version/instance:

  1. Default to using the first instance found on the lua package path, with config options included for the user to have it use the included fennel instance or a path to have it use the specified version?
  2. Default to the included fennel instance with an override option for a custom version and a "use package.path" option?
  3. Not include a fennel instance at all, and require it to either be specified or already be on package.path?

I am leaning towards option 1 or 2, but would welcome feedback. Thanks!

@jaawerth jaawerth added the enhancement New feature or request label Mar 28, 2019
@bakpakin
Copy link

Seems to me it would probably be easiest to default to whatever is found on the package path, but use dofile('user-provided-path-to-fennel') for a user provided path. A user could mess with package.path in the nvim/init.vim file if they needed to mess with the package paths, I think.

@jaawerth
Copy link
Owner Author

That makes sense; no need to add extra config that just wraps package.path manipulation when I could just document the necessary change to package.path. And it could fallback to the include fennel version just by sticking its location to the end of package.path.

Thanks!

@meh
Copy link

meh commented Apr 18, 2021

What's the trick to use a more recent version of Fennel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants