From 7096adce11b93787170c09b79a6170d97b4a977c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 29 Jul 2024 00:03:58 +0200 Subject: Replace fn with λ and how cmds are imported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fnl/util/cmds.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fnl/util') diff --git a/fnl/util/cmds.fnl b/fnl/util/cmds.fnl index 254a26d..5881634 100644 --- a/fnl/util/cmds.fnl +++ b/fnl/util/cmds.fnl @@ -1,9 +1,9 @@ -(fn create-user-cmds [user-cmds] +(λ create-user-cmds [user-cmds] (each [_ user-cmd (ipairs user-cmds)] (match user-cmd [event cmd opts] (vim.api.nvim_create_user_command event cmd opts)))) -(fn create-auto-cmds [auto-cmds] +(λ create-auto-cmds [auto-cmds] (each [_ auto-cmd (ipairs auto-cmds)] (match auto-cmd [event opts] (vim.api.nvim_create_autocmd event opts)))) -- cgit v1.2.3-70-g09d2