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.
|
|
|
--[[
|
|
|
|
/*
|
|
|
|
* IMPORTS
|
|
|
|
*/
|
|
|
|
--]]
|
|
|
|
|
|
|
|
local globals = require('libmodal/src/base/globals')
|
|
|
|
|
|
|
|
--[[
|
|
|
|
/*
|
|
|
|
* MODULE
|
|
|
|
*/
|
|
|
|
--]]
|
|
|
|
|
|
|
|
local utils = {}
|
|
|
|
utils.api = require('libmodal/src/utils/api')
|
|
|
|
utils.DateTime = require('libmodal/src/utils/DateTime')
|
|
|
|
utils.Indicator = require('libmodal/src/utils/Indicator')
|
|
|
|
utils.vars = require('libmodal/src/utils/vars')
|
|
|
|
utils.WindowState = require('libmodal/src/utils/WindowState')
|
|
|
|
|
|
|
|
--[[
|
|
|
|
/*
|
|
|
|
* FUNCTIONS
|
|
|
|
*/
|
|
|
|
--]]
|
|
|
|
|
|
|
|
function utils.showError(pcallErr)
|
|
|
|
utils.api.nvim_bell()
|
|
|
|
utils.api.nvim_show_err(globals.DEFAULT_ERROR_MESSAGE,
|
|
|
|
utils.api.nvim_get_vvar('throwpoint')
|
|
|
|
.. '\n' ..
|
|
|
|
utils.api.nvim_get_vvar('exception')
|
|
|
|
.. '\n' ..
|
|
|
|
tostring(pcallErr)
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
--[[
|
|
|
|
/*
|
|
|
|
* PUBLICIZE MODULE
|
|
|
|
*/
|
|
|
|
--]]
|
|
|
|
|
|
|
|
return utils
|