From 4151e7a73ef0476b4aea5a356d391a7060b8a01c Mon Sep 17 00:00:00 2001 From: unwox Date: Thu, 30 Oct 2025 19:01:32 +0600 Subject: small improvements here and there --- .nvim.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to '.nvim.lua') diff --git a/.nvim.lua b/.nvim.lua index 60d8b28..dd8a48c 100644 --- a/.nvim.lua +++ b/.nvim.lua @@ -1,10 +1,9 @@ -vim.keymap.set("n", ",tf", ":!./run.sh fetch") -vim.keymap.set("n", ",tt", ":!./run.sh serve") -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"}, -- cgit v1.2.3