38 lines
1.1 KiB
Lua
38 lines
1.1 KiB
Lua
-- A function that applies passes the output of string.format to the print
|
|
-- function
|
|
---@param string string #template string
|
|
local function fprint(string, ...)
|
|
print(string.format(string, ...))
|
|
end
|
|
|
|
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
|
|
|
|
-- vim.cmd[[colorscheme tokyonight]]
|
|
-- -- vim.cmd[[colorscheme lumona]]
|
|
-- vim.cmd[[packadd cfilter]]
|