diff options
Diffstat (limited to '.nvim.lua')
| -rw-r--r-- | .nvim.lua | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,11 +1,16 @@ - 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({"BufEnter", "BufWinEnter"}, { pattern = {"*.fnl"}, callback = function() - vim.repl.configs.fennel.cmd = {"fennel"} + vim.repl.fennel.cmd = {"./run.sh", "serve", "--jit"} + vim.repl.fennel.filters = {} vim.opt.lispwords:append("local") vim.opt.lispwords:append("fn") vim.opt.lispwords:append("set") |
