From 29cad43659e0d2d0dfa407a7bcca5abd9a75fa5b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 14 Sep 2023 12:04:06 +0200 Subject: Rename to buffer --- fnl/plugins/lsp/keymaps.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fnl/plugins/lsp/keymaps.fnl') diff --git a/fnl/plugins/lsp/keymaps.fnl b/fnl/plugins/lsp/keymaps.fnl index dfa0545..5ab4f49 100644 --- a/fnl/plugins/lsp/keymaps.fnl +++ b/fnl/plugins/lsp/keymaps.fnl @@ -30,10 +30,10 @@ {:desc "Code Lens"}] [:n :li :LspInfo {:desc "Lsp Info"}]]) -(fn on-attach [bufnr] +(fn on-attach [buffer] (each [_ mapping (ipairs mappings)] (match mapping - [mode key cmd desc] (vim.api.nvim_buf_set_keymap bufnr mode key cmd + [mode key cmd desc] (vim.api.nvim_buf_set_keymap buffer mode key cmd (vim.tbl_extend :force opts desc))))) -- cgit v1.2.3-70-g09d2