dotfiles/.config/nvim/lua/mzte_nv_preloader.lua

10 lines
322 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 = pcall(require, "mzte_nv");
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
require("mzte_nv").onInit()