Skip to content

Neovim version detection invalid #124

@alerque

Description

@alerque

This won't work:

if vim.fn.has("nvim-0.8") then

That function returns 1 or 0 depending on the result, both of which evaluate as truthy in the context of a Lua expression.

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