Reload aniseed instead of source init.lua

This commit is contained in:
2022-10-20 19:18:36 -05:00
parent 1829789ed0
commit 94c07708b6

View File

@@ -10,10 +10,11 @@
; (set nvim.g.mapleader "\\")
(defn aniseed-reload []
(each [k _ (ipairs package.loaded)]
(when (string.match k "^dotfiles%..+")
(tset package.loaded k nil)))
((. (require :aniseed.env) :init) {:module :dotfiles.init :compile true}))
(each [k _ (ipairs package.loaded)]
(when (string.match k "^dotfiles%..+")
(tset package.loaded k nil)))
((. (require :aniseed.env) :init) {:module :dotfiles.init :compile true})
(a.println "aniseed reloaded!"))
(vim.keymap.set :n "<leader>`" aniseed-reload)