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

8 lines
346 B
Fennel

;; This module is responsible for loading the native mzte-nv lua module
(set package.cpath (.. (. package :cpath) ";" (vim.loop.os_homedir)
:/.local/share/nvim/mzte-nv.so))
(let [(success mztenv) (pcall require :mzte_nv)]
(when (not success)
(error "Failed to preload mzte-nv. Is it installed?"))
(mztenv.onInit))