Skip to content

Suggestion: Specify supported Neovim version #99

@rsynnest

Description

@rsynnest

Yo! Thank you for making this ❤️

I recently updated navbuddy, and it errored out my neovim due to this change:
06525d0

That update totally makes sense to target the latest Neovim API, but if users are on an old version it might be tricky to figure out why it's broken.

I had an idea that it might be useful to add a version check like the following:

if not (nvim_version.major == 0 and nvim_version.minor >= 10) then
  vim.api.nvim_err_writeln("WARNING: nvim-navbuddy requires Neovim v0.10.0 or higher.")
end

I think it's good to continue to run the plugin even if it's on an unsupported neovim, because it will still throw a loud message if it encounters an error.

This check may also be annoying since you would need to manually keep it up to date. But, at least it gives the user some extra information about why something might be failing, and what version the plugin is tested against. Feel free to use it or not, just an idea I'm toying with.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions