summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp/keymaps.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/lsp/keymaps.fnl')
-rw-r--r--fnl/plugins/lsp/keymaps.fnl4
1 files changed, 2 insertions, 2 deletions
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 :<leader>li :<cmd>LspInfo<cr> {: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)))))