Module vimdaloo.version

The vimdaloo.version submodule.

See also vimdaloo

Details

Version convenience functions.

API

Synopsis

Functions
setup()

Initializes the version submodule

lua()

returns the singleton LuaVersion object

luajit()

returns the singleton LuaJITVersion object

nvim()

returns the singleton NvimVersion object

vimdaloo()

returns the singleton VimdalooVersion object

versions()

returns a table of singleton version objects

values()

returns a table of version values

string()

returns combined versions string

print()

prints combined versions string

notify()

notifies combined versions string via vim.notify(), or falls back to printing if not within nvim

setup(config)

Initializes the version submodule. By default called automatically by vimdaloo.setup(config).

Parameters
config (table)

optional custom user configuration

lua()

returns the singleton LuaVersion object

Return Values
(vimdaloo.version.LuaVersion)
luajit()

returns the singleton LuaJITVersion object

Return Values
(vimdaloo.version.LuaJITVersion)
nvim()

returns the singleton NvimVersion object

Return Values
(vimdaloo.version.NvimVersion)
vimdaloo()

returns the singleton VimdalooVersion object

Return Values
(vimdaloo.version.VimdalooVersion)
versions()

returns a table of singleton version objects

Return Values
(table)

{ lua = vimdaloo.version.LuaVersion, luajit = vimdaloo.version.LuaJITVersion, nvim = vimdaloo.version.NvimVersion, vimdaloo = vimdaloo.version.VimdalooVersion }

values()

returns a table of version values

Return Values
(table)

e.g. { lua = "5.1", luajit = "2.1.0-beta3", nvim = "0.7.0", vimdaloo = "0.0.1-1" }

string()

returns combined versions string

Return Values
(string)

e.g. "Lua 5.1, LuaJIT 2.1.0-beta3, NVIM v0.7.0, Vimdaloo 0.0.1-1"

print()

prints combined versions string

notify()

notifies combined versions string via vim.notify(), or falls back to printing if not within nvim