27 lines
781 B
Lua
27 lines
781 B
Lua
|
if pcall(require, "hotpot") then
|
||
|
-- Setup hotpot.nvim
|
||
|
require("hotpot").setup({
|
||
|
provide_require_fennel = true,
|
||
|
-- show fennel compiler results in when editing fennel files
|
||
|
enable_hotpot_diagnostics = true,
|
||
|
compiler = {
|
||
|
-- options passed to fennel.compile for modules, defaults to {}
|
||
|
modules = {
|
||
|
-- not default but recommended, align lua lines with fnl source
|
||
|
-- for more debuggable errors, but less readable lua.
|
||
|
correlate = true
|
||
|
},
|
||
|
macros = {
|
||
|
-- allow macros to access vim global, needed for nyoom modules
|
||
|
env = "_COMPILER",
|
||
|
compilerEnv = _G,
|
||
|
allowGlobals = true,
|
||
|
},
|
||
|
}
|
||
|
})
|
||
|
-- Import neovim configuration
|
||
|
require("conf")
|
||
|
else
|
||
|
print("Unable to require hotpot")
|
||
|
end
|