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

9 lines
346 B
Text
Raw Normal View History

2023-02-18 00:35:59 +01:00
;; 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))