diff --git a/.nfnl.fnl b/.nfnl.fnl index 09ff25f8..cf9e8f3f 100644 --- a/.nfnl.fnl +++ b/.nfnl.fnl @@ -5,4 +5,4 @@ {:compiler-options (core.merge defaults.compiler-options {:compilerEnv _G}) - :source-file-patterns [".nvim.fnl" "fnl/**/*.fnl"]} + :source-file-patterns [".nvim.fnl" "plugin/*.fnl" "fnl/**/*.fnl"]} diff --git a/fnl/conjure/main.fnl b/fnl/conjure/main.fnl index 8a429de9..7f726efe 100644 --- a/fnl/conjure/main.fnl +++ b/fnl/conjure/main.fnl @@ -5,4 +5,4 @@ (fn main [] (mapping.init (config.filetypes))) -{: main } +{: main} diff --git a/plugin/conjure.fnl b/plugin/conjure.fnl new file mode 100644 index 00000000..6c0478fd --- /dev/null +++ b/plugin/conjure.fnl @@ -0,0 +1,4 @@ +(if (= 1 (vim.fn.has "nvim-0.8")) + (let [main (require :conjure.main)] + (main.main)) + (vim.notify_once "Conjure requires Neovim > v0.8" vim.log.levels.ERROR)) diff --git a/plugin/conjure.lua b/plugin/conjure.lua index 0130adf6..13b2043b 100644 --- a/plugin/conjure.lua +++ b/plugin/conjure.lua @@ -1,5 +1,7 @@ -if vim.fn.has("nvim-0.8") == 1 then - require("conjure.main").main() +-- [nfnl] Compiled from plugin/conjure.fnl by https://github.com/Olical/nfnl, do not edit. +if (1 == vim.fn.has("nvim-0.8")) then + local main = require("conjure.main") + return main.main() else - vim.notify_once("Conjure requires Neovim > v0.8", vim.log.levels.ERROR) + return vim.notify_once("Conjure requires Neovim > v0.8", vim.log.levels.ERROR) end