Lua syntax question;

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • gitsigns.nvim

    Git integration for buffers

    Hello, I actually try to understand gitsigns.nvim code and I found this uncommon syntax (ret)(step) here function M.async(func) return function(...) local params = { ... } return function(callback) local thread = co.create(func) local function step(...) local stat, ret = co.resume(thread, ...) assert(stat, ret) if co.status(thread) == "dead" then if callback then callback(ret) end else --> (ret)(step) end end ‍ step(unpack(params)) end end end I looked but I can't find an explanation for the `(xxx)` syntax, it seems to be a function arguments list but without function? Thank you for your help!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts