diff options
| author | unwox <me@unwox.com> | 2024-11-06 23:48:15 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-11-06 23:48:15 +0600 |
| commit | 9d5e8f6a202da9d0e2f1a7cee93b7fb2ec518e2c (patch) | |
| tree | 9f59e095a71343aab8026e238e221ee6249c2ac3 /.nvim.lua | |
| parent | 23466bca222f60ca13038d36b4160bf212682e31 (diff) | |
update .nvim.lua
Diffstat (limited to '.nvim.lua')
| -rw-r--r-- | .nvim.lua | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -1,15 +1,14 @@ -vim.repl = { - configs = { - fennel = { - cmd = {"fennel"}, - filters = {}, - } - } -} vim.keymap.set("n", ",tf", ":!./run.sh fetch<cr>") vim.keymap.set("n", ",tt", ":!./run.sh serve<cr>") -vim.opt.lispwords:append("local") -vim.opt.lispwords:append("fn") -vim.opt.lispwords:append("set") +vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, { + pattern = {"*.fnl"}, + callback = function() + vim.repl.configs.fennel.cmd = {"fennel"} + vim.opt.lispwords:append("local") + vim.opt.lispwords:append("fn") + vim.opt.lispwords:append("set") + vim.opt.lispwords:append("if") + end, +}) |
