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

Add section on external dependencies #20

Open
mrcjkb opened this issue Aug 13, 2024 · 0 comments
Open

Add section on external dependencies #20

mrcjkb opened this issue Aug 13, 2024 · 0 comments

Comments

@mrcjkb
Copy link
Member

mrcjkb commented Aug 13, 2024

Example:

sqlite.lua depends on libsqlite (e.g. libsqlite3.so).
It requires the user to set g:sql_clib_path so that it can find it.

This approach has the following problems:

Both cases are prone to instability.

Instead, plugins should auto-detect external dependencies (perhaps Neovim should provide an API for this? 🤔)
and fall back to a user config or an environment variable if the dependency is not found.

If a plugin is published to luarocks, its external dependencies should be specified in the rockspec.
See for example fugit2.nvim.

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

No branches or pull requests

1 participant