Skip to content

Commit

Permalink
plugin/conjure.lua is now compiled from fennel because why not
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Feb 15, 2025
1 parent aa30951 commit 2afccae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .nfnl.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
2 changes: 1 addition & 1 deletion fnl/conjure/main.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
(fn main []
(mapping.init (config.filetypes)))

{: main }
{: main}
4 changes: 4 additions & 0 deletions plugin/conjure.fnl
Original file line number Diff line number Diff line change
@@ -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))
8 changes: 5 additions & 3 deletions plugin/conjure.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2afccae

Please sign in to comment.