You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nvim-libmodal/lua/libmodal/src/utils/api.lua

38 lines
563 B
Lua

--[[
/*
* IMPORTS
*/
--]]
local globals = require('libmodal/src/base/globals')
--[[
/*
* MODULE
*/
--]]
local api = vim.api
-----------------------------------
--[[ SUMMARY:
* Check whether or not some variable exists.
]]
--[[
* `scope` => The scope of the variable (i.e. `g`, `l`, etc.)
* `var` => the variable to check for.
]]
-----------------------------------
function api.nvim_exists(scope, var)
return api.nvim_eval("exists('" .. scope .. ":" .. var .. "')") ~= globals.VIM_FALSE
end
--[[
/*
* PUBLICIZE MODULE
*/
--]]
return api