diff options
| author | unwox <me@unwox.com> | 2025-10-30 19:01:32 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-10-30 20:36:58 +0600 |
| commit | 4151e7a73ef0476b4aea5a356d391a7060b8a01c (patch) | |
| tree | a576a0017fa5fa0c368d39c270a1df99b79b6014 /.nvim.lua | |
| parent | b06fdc9c3b4b6dc0d5d60098303dd57d5c098e13 (diff) | |
small improvements here and there
Diffstat (limited to '.nvim.lua')
| -rw-r--r-- | .nvim.lua | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,10 +1,9 @@ -vim.keymap.set("n", ",tf", ":!./run.sh fetch<cr>") -vim.keymap.set("n", ",tt", ":!./run.sh serve<cr>") -vim.keymap.set("n", ",rr", function () - local module = vim.fn.expand("%"):gsub("/", "."):gsub(".fnl$", "") - vim.repl.send({args = "(reload :" .. module .. ")"}) - vim.fn.system("qutebrowser :reload") -end) +vim.api.nvim_create_autocmd({"BufWritePost"}, { + pattern = {"*.fnl"}, + callback = function () + vim.repl.send("(luna.restart)") + end +}) vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, { pattern = {"*.fnl"}, |
