summaryrefslogtreecommitdiff
path: root/.nvim.lua
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-11-26 15:35:35 +0600
committerunwox <me@unwox.com>2024-11-27 17:33:45 +0600
commitcd8e3249f0e41372a2748ee8554e431d152cea01 (patch)
tree459c4552e673e5c9b4ea39a8c0e6c536424734ad /.nvim.lua
init
Diffstat (limited to '.nvim.lua')
-rw-r--r--.nvim.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/.nvim.lua b/.nvim.lua
new file mode 100644
index 0000000..50bdee2
--- /dev/null
+++ b/.nvim.lua
@@ -0,0 +1,14 @@
+
+vim.keymap.set("n", ",tf", ":!./run.sh fetch<cr>")
+vim.keymap.set("n", ",tt", ":!./run.sh serve<cr>")
+
+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,
+})