dotfiles/.config/nvim/lua/mzte_nv_preloader.lua
2022-10-18 23:03:39 +02:00

7 lines
293 B
Lua

-- 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"
local success = pcall(require, "mzte_nv");
if not success then
error "Failed to preload mzte_nv. Is it installed?"
end