From c41f25fa0d1c882d3dd484d10666b5341dec5c92 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 13 Jan 2023 01:49:50 +0100 Subject: Refactor --- fnl/plugins/lsp/keymaps.fnl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'fnl/plugins/lsp') diff --git a/fnl/plugins/lsp/keymaps.fnl b/fnl/plugins/lsp/keymaps.fnl index 9b95140..cd62073 100644 --- a/fnl/plugins/lsp/keymaps.fnl +++ b/fnl/plugins/lsp/keymaps.fnl @@ -10,12 +10,9 @@ [:n :gl "lua vim.diagnostic.open_float()"] [:n :gs "lua vim.lsp.buf.signature_help()"]]) -(fn buf-set-keymap [bufnr mode key cmd opts] - (vim.api.nvim_buf_set_keymap bufnr mode key cmd opts)) - (fn on-attach [bufnr] (each [_ mapping (ipairs mappings)] (match mapping - [mode key cmd] (buf-set-keymap bufnr mode key cmd opts)))) + [mode key cmd] (vim.api.nvim_buf_set_keymap bufnr mode key cmd opts)))) {: on-attach} -- cgit v1.2.3-70-g09d2