summaryrefslogtreecommitdiff
path: root/neovim/init.fnl
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2022-11-28 20:35:27 +0100
committerMike Vink <mike1994vink@gmail.com>2022-11-28 20:35:27 +0100
commit20f9f6f51b3cb17c8ad202b9fc1ea3a1f62eefdb (patch)
tree4ba278b6d0fa522878fd57ed60ff545f38080f57 /neovim/init.fnl
parent9c198c6dbc818710c5206fd812a25510e43e221a (diff)
move out neovim
Diffstat (limited to 'neovim/init.fnl')
-rw-r--r--neovim/init.fnl27
1 files changed, 0 insertions, 27 deletions
diff --git a/neovim/init.fnl b/neovim/init.fnl
deleted file mode 100644
index f4a3373..0000000
--- a/neovim/init.fnl
+++ /dev/null
@@ -1,27 +0,0 @@
-;; Ahead of time compiles this file to ./init.lua
-(fn build-init []
- (let [{: build} (require :hotpot.api.make)
- allowed-globals (icollect [n _ (pairs _G)] n)
- opts {:verbosity 0
- :compiler {:modules {:allowedGlobals allowed-globals}}}]
- (build "/home/mike/dotnix/neovim/init.fnl" opts ".+" #(values $1))
- (build)))
-
-;; Call hotpot.setup and compile again after fs event
-(let [hotpot (require :hotpot)
- setup hotpot.setup
- build hotpot.api.make.build
- uv vim.loop]
-
- (setup {:provide_require_fennel true
- :compiler {:modules {:correlate true}
- :macros {:env :_COMPILER
- :compilerEnv _G
- :allowedGlobals false}}})
-
- (let [handle (uv.new_fs_event)
- path (vim.fn.expand "/home/mike/dotnix/neovim/init.fnl")]
- (uv.fs_event_start handle path {} #(vim.schedule build-init))
- (vim.api.nvim_create_autocmd :VimLeavePre {:callback #(uv.close handle)})))
-
-(require :conf)