dotfiles/mzte-nv/conf/lua/mzte_nv_preloader.lua

10 lines
317 B
Lua
Raw Normal View History

2022-10-20 15:38:12 +02:00
-- This module is responsible for loading the native mzte-nv lua module
package.cpath = package.cpath .. ";" .. vim.loop.os_homedir() .. "/.local/share/nvim/mzte-nv.so"
2022-10-18 23:03:39 +02:00
local success, mztenv = pcall(require, "mzte_nv")
2022-10-18 23:03:39 +02:00
if not success then
2022-10-20 15:38:12 +02:00
error "Failed to preload mzte-nv. Is it installed?"
2022-10-18 23:03:39 +02:00
end
2022-10-20 15:04:28 +02:00
mztenv.onInit()